#include <iostream>

using namespace std;

int main()
{
    int a;
    int b;
    int c;
    int max;
    int mid;
    int min;
    int i;

    cin >> a >> b >> c;

    max = ( a < b ) ? b : a;
    max = ( max < c ) ? c : max;

    min = ( a > b ) ? b : a;
    min = ( min > c ) ? c : min;


    mid = a>b?  ( c>a? a : (b>c? b:c) )  :  ( c>b? b : (a>c? a:c))  ;

    cout << max << mid << min;
    return 0;
}