
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
In the second year of high school, there are 310 male students and 290 female students. A sample is drawn from the entire grade using stratified random sampling method according to the gender ratio. If the sample contains 31 male students, calculate the sample size.

Present the answer in LaTex format: \boxed{Your answer}
user