#include <bits/stdc++.h>
#include <stdlib.h>
#include<iomanip>

using namespace std;

int main()
 {
     int a,b,c;
     int ar[4],res;

     cin>>a>>b>>c;
     ar[0]=a;
     ar[1]=b;
     ar[2]=c;

     sort(ar,ar+3,greater<int>());

     res=ar[0]*10+ar[1]+ar[2];

     cout<<res<<endl;

    return 0;
  }

