//Bai 5: đề bài ko nói rõ nên ko biết code theo kiểu nào:))

#include<bits/stdc++.h>
using namespace std;
#define el "\n"
#define ll long long
#define ull unsigned long long
#define se second
#define fi first
#define be begin()
#define en end()
#define Faster cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);

void Run(int a[])
{
    cin >> a[0] >> a[1] >> a[2];
    int min1 = INT_MAX, min2 = INT_MAX;
    for(int i =0; i < 3; i++)
    {
        if(a[i] < min1) // nếu bài cho phép số trùng thì thêm =
        {
            min2 = min1;
            min1 = a[i];
        }
        if(a[i] < min2 && a[i] > min1) min2 = a[i]; //nếu bài cho phép số trùng thì thêm =
    }
    cout << min2;
}
int main()
{
    Faster;
    int a[3];
    Run(a);
    return 0;
}

