AR2MIN - Nhap Mang Va Tim Min

no tags 

Allow the user to enter the size of the array n × m, then enter the value of each element in the array. Find and print the minimum value.

Input

n m

pt00 pt01 ....

pt10 pt11 ....

Output

The minimum value from the array.

Example

Input:
2 3
1 2 3
4 5 6 Output: 1


Added by:khanhvh
Date:2020-11-17
Time limit:1s-5s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All