Олимпиадный тренинг

Задача 18781. Minimum in the table


Задача

Темы:
Minimum in the table
 
Given a table of numbers, consisting of N lines of M numbers each.
All numbers in the table are natural numbers, not exceeding 1000.
You want to find the smallest number in this table.
 
Input data
The input file first contains the number N - the number of lines,
and then the number M - the number of columns in the table (1<=N<=100, 1<=M<=100).
Next comes the table itself.
 
Output
In the output file print the smallest number that occurs in the table.
 
Sample input file
3 4
6 4 10 4