Problem P: GESP 二 202412-编程2

Problem P: GESP 二 202412-编程2

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

Sample Input Copy

3
16
81
10

Sample Output Copy

9