Given three integers ‘A’ denoting first term of an arithmetic sequence, ‘C’ denoting the common difference
Of the Arithmetic Sequence and ‘B’ you need to tell whether ‘B’ exists in the arithmetic Sequence or not. If ‘B’ exists print 1 otherwise 0
Input:
Input contains three integers separated by space in a single statement
1 3 2
Output:
1
Explanation:
3 is the second term of the arithmetic sequence starting with 1 and having common difference 2
--------