Vị trí số bé nhất

View as PDF



Problem type
Points: 100 Time limit: 5.0s Memory limit: 256M Input: stdin Output: stdout

Tìm số bé nhấtvị trí của nó trong 5 số được nhập từ bàn phím (\(1 \le\)số \(\le 10^6\))

Input

Chứa 5 số nguyên dương, mỗi số trên 1 dòng

Output

Chứa số bé nhất và vị trí của nó trong 5 số, mỗi số trên 1 dòng

Example

Test 1

Input
345
100
23
45
78
Output
23
3
Note

Số bé nhất trong 5 số trên là 23, số 23 đang ở vị trí thứ 3


Comments

There are no comments at the moment.