P26884 [AtCoder] Third Largest Number
提高-
题目描述

Problem Description

Six distinct integers \( A \), \( B \), \( C \), \( D \), \( E \), \( F \) are given.

Write a program to find the third largest number among them.

Input Format

The input is given from the standard input in the following format:

\( A \) \( B \) \( C \) \( D \) \( E \) \( F \)

Output Format

Output the third largest integer.

Sample Input and Output

Sample Input #1

4 18 25 20 9 13

Sample Output #1

18

Sample Input #2

95 96 97 98 99 100

Sample Output #2

98

Sample Input #3

19 92 3 35 78 1

Sample Output #3

35

Notes/Hints

Constraints

  • \( 1 \leq A, B, C, D, E, F \leq 100 \)
  • \( A, B, C, D, E, F \) are all distinct.
  • All values in the input are integers.

Sample Explanation 1

The third largest number is \( 18 \).

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
4 18 25 20 9 13
样例输出
18