10036 - moocHW1b   

Description

Consider a conversion that modifies the digits of an integer N as follows: Check each digit of N. If the digit is odd, keep it unchanged. If the digit is even, divide it by 2. For example, if N is 1234, the answer is 1132; if N is 747, the answer is 727.

 

[hint]

8/2((8+1)%2)+8(8%2) = 4

7/2((7+1)%2)+7(7%2) = 7

[注意輸出的最後要換行]

Input

 An integer N, where 0<N<10000

Output

 The number after conversion

Sample Input  Download

Sample Output  Download

Tags




Discuss