#SCCCIE000018. Số bài của ABC (New Generation ABC)

Số bài của ABC (New Generation ABC)

New Generation ABC

Source: AtCoder

Problem Statement

The number of problems in ABC changed over time: contests 11 through 125125 had 44, 126126 through 211211 had 66, and 212212 through 214214 had 88. Find the number for contest NN.

Input

One line contains NN.

Output

Print the number of problems in the NN-th ABC.

Subtasks

  • Subtask 1 (100%): 1≤N≤2141 \le N \le 214

Examples

Example 1

Input

214

Output

8

Explanation

For the sample values 214, evaluating the conditions in the statement gives 8. Therefore the program prints the shown output.

Example 2

Input

1

Output

4

Explanation

For the sample values 1, evaluating the conditions in the statement gives 4. Therefore the program prints the shown output.

Example 3

Input

126

Output

6

Explanation

For the sample values 126, evaluating the conditions in the statement gives 6. Therefore the program prints the shown output.