Thứ hạng

View as PDF

Points: 100 (p) Time limit: 1.0s Memory limit: 256M Input: stdin Output: stdout

Bạn được cho bốn số nguyên không âm phân biệt \(a,b,c,d\).

Hỏi số \(a\) là số lớn thứ mấy trong bốn số?

Input

  • Một dòng chứa bốn số nguyên \(a,b,c,d\) (\(0 \le a,b,c,d \le 10^4\)).

Output

  • Đưa ra một số nguyên duy nhất là kết quả bài toán.

Example

Test 1
Input
3 4 2 1
Output
2

Comments

There are no comments at the moment.