CCC '18 Contest 1 P1 - Equations


Submit solution

Points: 3
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type

Mr. Ianine is sick today, so a substitute teacher has taken his place. He has given you an equation to work on for class: Given integers \(m\), \(x\), and \(b\), find the solution to the equation \(y = mx+b\).

Input Specifications

\(-10^9 \le m, x, b \le 10^9\)

Output Specifications

Output the solution to the equation \(y = mx+b\).

Sample Input

5 1 2

Sample Output

7

Comments