eolymp

Fun Problem

Paradoxically, there are no hints in this statement.

Time limit 1 second
Memory limit 128 MiB
Input example #1
41
Output example #1
30
Input example #2
7
Output example #2
2021
Input example #3
43
Output example #3
Online
Input example #4
1
Output example #4
Subscribe
Source 2021 KBTU Open, Spring Kazakhstan, Alma-Ata, May 30, Problem H