Nhỏ nhì

View as PDF



Problem type
Points: 1100 Time limit: 1.0s Memory limit: 1G Input: stdin Output: stdout

Cho bốn số nguyên \(a, b, c, d\). Hãy tìm số nhỏ thứ nhì.

Input

  • Gồm một dòng chứa bốn số nguyên \(a, b, c, d\) \((1 \le a, b, c, d \le 10^{9})\)

Output

  • In ra một dòng duy nhất là số nhỏ thứ nhì

Example

Test 1
Input
1 2 3 4
Output
2
Test 2
Input
1 2 3 3
Output
2

Comments

There are no comments at the moment.