#if !defined(MAX)
#define MAX(A,B)    ((A) > (B) ? (A) : (B))
#endif


#import <stdio.h>
int main(int argc, const char * argv[]) {
    @autoreleasepool {
        int a,b,c;
        scanf("%d %d %d", &a,&b,&c);
        printf("%d\n", MAX(10*a+b+c,MAX(a+10*b+c,a+b+10*c)));
    }
    return 0;
}
