Arithmetic progression is given with the first term and difference . Find the -th term of the sequence.
Two fractions , and number . All numbers are positive integers no more than 10^6.
Print the -th term of arithmetic progression in the form of irreducible fraction.
Example 1
Example 2
Example 3