//
//  main.cpp
//  CobaSemogaBisa
//
//  Created by Willy Putra on 19/12/19.
//  Copyright © 2019 Willy Putra. All rights reserved.
//

#include<stdio.h>
int main()
{
    int a,b,c,input;
    scanf("%d %d %d",&a,&b,&c);
    for(int x=0;x<3;x++)
    {
        if(a<b)
        {
            input=a;
            a=b;
            b=input;
        }
        if(b<c)
        {
            input=b;
            b=c;
            c=input;
        }
    }
    int hasil = a*10+b+c;
    printf("%d\n",hasil);
    
    
    
    return 0;
}