# ACdream 1408 "Money, Money, Money"（找规律）

### "Money, Money, Money"

Special Judge Time Limit: 2000/1000MS (Java/Others) Memory Limit: 128000/64000KB (Java/Others)
Submit Statistic Next Problem

#### Problem Description

The government of Flatland has decided to carry out the money system reform. The purpose of the reform is to reduce the number of different banknotes denominations down to two. After the reform there will be two types of banknotes — a tupiks and b tupiks.
The problem is that the president of Flatland doesn’t like the number x. Therefore the minister of finances was instructed to choose such a and b that it is impossible to pay exactly x tupiks without change. On the other hand it must be possible to pay all amounts larger than x.
Now you are asked to help him — choose such a and b, or recommend the minister to retire, if it is impossible.

#### Input

Input file contains one number x (1 ≤ x ≤ 1012).

#### Output

Output two integer numbers a and b, such that it is impossible to pay x tupiks using banknotes of a and b tupiks without change, but it is possible to pay any larger sum. If it is impossible, output two zeroes to the output file.

`345`

#### Sample Output

`2 50 03 4`

`#include <cstdio>int main(){    long long x;    while(~scanf("%lld",&x))    {        if(x&1) printf("2 %lld\n",x+2);        else printf("0 0\n");    }    return 0;}`

2 0