P11947 [AOJ] Bringing Order to Disorder
普及
题目描述

Example

Input

20

Output

4

输入格式

见题面

输出格式

见题面

样例输入
20
样例输出
4