This page is still under construction.

Parts of this page are still being built. What you see may change.

The Second Largest Integer

Interview

Time limit2sMemory limit1024 MB

Summary
Given three integers A, B, and C, output the second largest value among them.
Level

Easy2 of 10

Topics
Implementation, Sorting
Solved
No attempts yet

Problem

Three integers A, B, C are given. Output the second largest among them.

Input

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

A B C

Output

Output the second largest among A, B, C.

Constraints

  • 1 ≤ A ≤ 100.
  • 1 ≤ B ≤ 100.
  • 1 ≤ C ≤ 100.

Examples4

  1. Example 1

    Input
    7 5 3
    
    Expected output
    5
    
  2. Example 2

    Input
    1 3 3
    
    Expected output
    3
    
  3. Example 3

    Input
    100 100 100
    
    Expected output
    100
    
  4. Example 4

    Input
    29 83 1
    
    Expected output
    29