You will be given a definition of a task first, then some input of the task.
The task is to generate the correct answer for a given math problem.

Problem: the sum of three consecutive even numbers is 366 . find the middle number of the three ?
Output:
122