Vla-tko, Vla-tko, Vla-tko!
Nobody comes to Vlatko's office hours anymore. Angered, enraged and disgruntled, Vlatko's revenge is a convenient task for COCI:
You are given an infinite arithmetic sequence
Please note: Every positive integer
Input Specification
The first line of input contains four integers
Output Specification
The first and only line of output must contain the required numbers, separated by spaces, in an arbitrary order.
Please note: you must output the numbers
The input data will be such that a solution that meets the given conditions exists.
Sample Input 1
5 3 2 2
Sample Output 1
2 5
Explanation for Sample Output 1
One of the possible sequences is the sequence in the output. The corresponding members of the arithmetic sequence are
Sample Input 2
2 1 10 3
Sample Output 2
2 20 200
Explanation for Sample Output 2
The corresponding members of the sequence are
Comments