Problem C: 最值问题-求最小

Problem C: 最值问题-求最小

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 225  Solved: 133
[Status] [Submit] [Creator:]

Description

输入一个正整数n,求n的各数位上最小的数

Input

一个正整数

Output

n的各数位上最小的数

Sample Input Copy

43164

Sample Output Copy

1