#import <Foundation/Foundation.h>

NSString* input() {
    return [[[NSString alloc] initWithData:[[NSFileHandle fileHandleWithStandardInput] availableData] encoding:NSUTF8StringEncoding] stringByTrimmingCharactersInSet:[NSCharacterSet newlineCharacterSet]];
}
void output(NSFileHandle* handle,NSString* s){
    NSData  *dataout = [[NSData alloc] initWithBytes:[s UTF8String] length:[s lengthOfBytesUsingEncoding:NSUTF8StringEncoding]];
    [handle writeData:dataout];
}

int main(int argc, const char * argv[])
{
    NSFileHandle *fhandle = [NSFileHandle fileHandleWithStandardOutput];
    NSArray *l = [input() componentsSeparatedByString:@" "];
    NSInteger a = [[l objectAtIndex:0] integerValue];
    NSInteger b = [[l objectAtIndex:1] integerValue];
    NSInteger c = [[l objectAtIndex:2] integerValue];
    
    if(a<b){a^=b;b^=a;a^=b;}
    if(b<c){b^=c;c^=b;b^=c;}
    if(a<b){a^=b;b^=a;a^=b;}
    
    NSString *s = [NSString stringWithFormat:@"%ld\n",10*a+b+c];
    output(fhandle,s);
    
    return 0;
}
