//A.cpp
#include <iostream>
#include <string>
#include <algorithm>
#include <set>
#include <map>
#include <vector>
#include <queue>
#include <math.h>
#define rep(i,n) for(int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;

int main(){
  int a[3];
  rep(i,3) cin >> a[i];
  sort(a,a+3,greater<int>());
  int x = 10*a[0]+a[1]+a[2];
  printf("%d\n", x);
  return 0;
}
