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 h(i) = 29*i + 2. Calculate the remainder when 122 is divided by h(1).

Output: 29


Input: Consider Input: Let z be ((-6)/4)/(3/(-6)). Let j(g) = -g**3 + 3*g**2 + g - 3. Let x be j(3). Let m be (-5 + x)*3/(-5). Solve 6*c - c = 5, -3*c + m = z*r for r.

Output: 0


Input: Consider Input: Four letters picked without replacement from {f: 8, g: 8, q: 2}. What is prob of sequence gggf?


Output: 28/765