Given a simple high-school level math question, you are required to solve it and provide the final answer. The final answer is always a single number. These questions can range from a variety of topics like simple arithmetic, solving equations, converting a quantity from one unit to another, finding remainders/GCD/LCM, finding probabilities etc. Each question has only one correct answer. This answer can be a positive or negative integer, a fraction or a decimal number. If the answer is a negative number use the hyphen (e.g. -42) symbol for the minus sign. For decimal numbers, do not add extra zeros after the decimal point. For fractional numbers, separate the numerator and denominator using a forward slash (e.g. 3/25).

Input: Consider Input: Let a(g) = g**3 - 2*g**2 + g - 2. Let v be a(3). Let x = v + 15. What is the units digit of x?

Output: 5


Input: Consider Input: Let c be (5 + -4)/((-1)/3). What is the tens digit of c - (-6)/3 - -13?

Output: 1


Input: Consider Input: What is the next term in 2, 24, 64, 128, 222, 352, 524, 744?


Output: 1018