Simple Pattern


Input

A single positive integer nn is given in the only line of input.

Output

Output a non-negative integer representing the answer.

Constraints

1n10001 \le n \le 1000

Example 1

Input
Input 1
1
Input 2
1

Example 2

Input
Input 3
10
Input 4
1

Example 3

Input
Input 5
100
Input 6
5

Example 4

Input
Input 7
1000
Input 8
3

Comments0


No comments yet

Be the first to comment.

New comment


Log in to join the discussion.