Starry lines#5466

Starry lines

2 seconds
64 megabytes
Very easy

At the Data String Research Institute, a crisis has occurred. After developing an algorithm that destroys strings, all existing strings were eliminated, and now there is an urgent need to create new ones. However, completely random strings are undesirable, so Andryusha is aiming for aesthetic appeal in the new strings. His latest task is dedicated to so-called starry strings.

A string is said to be -starry (where is some character) if it is either empty, or has the form S_1cS_2c\ldots S_{k-1}cS_k for some integer k \ge 2. In this form, each S_i is a -starry string of equal length, where is the character immediately following in the alphabet. The only exception is for -starry strings, which are defined as strings consisting only of the letter (including the empty string).

A starry string is any string that is -starry for some letter of the Latin alphabet (i.e., for some lowercase English letter ).

For example, the string ccbccbccbcc is -starry, but the strings ccbccbccbc and aabccbaa are not.

Andryusha is wondering how many starry strings of a given length exist. Write a program that determines the number of such strings of length .

Input

The input consists of a single integer (1 \le n \le 100).

Output

Print the number of starry strings of length .

Examples

Example 1

Loading
Loading