100 #ABC068B. [ABC068B] Break Number

[ABC068B] Break Number

Score : 200200 points

Problem Statement

Takahashi loves numbers divisible by 22.

You are given a positive integer NN. Among the integers between 11 and NN (inclusive), find the one that can be divisible by 22 for the most number of times. The solution is always unique.

Here, the number of times an integer can be divisible by 22, is how many times the integer can be divided by 22 without remainder.

For example,

  • 66 can be divided by 22 once: 66 -> 33.
  • 88 can be divided by 22 three times: 88 -> 44 -> 22 -> 11.
  • 33 can be divided by 22 zero times.

Constraints

  • 1N1001 \leq N \leq 100

Input

Input is given from Standard Input in the following format:

NN

Output

Print the answer.

7
4

44 can be divided by 22 twice, which is the most number of times among 11, 22, ..., 77.

32
32
1
1
100
64