#include <stdio.h>
#include <math.h>
long long int
main ()
{
  long long int x, y, z, z1, z2, z3, z4, z5, z6, k1, k2, k3, k4, k5, k6, i, max;
  long long int arr[10] = { };
  scanf ("%lld%lld%lld", &x, &y, &z);
  z1 = x * pow (10, (long long int) log10 (y) + 1) + y;
  z2 = x * pow (10, (long long int) log10 (z) + 1) + z;
  z3 = y * pow (10, (long long int) log10 (x) + 1) + x;
  z4 = y * pow (10, (long long int) log10 (z) + 1) + z;
  z5 = z * pow (10, (long long int) log10 (x) + 1) + x;
  z6 = z * pow (10, (long long int) log10 (y) + 1) + y;

  k1 = z1 * pow (10, (long long int) log10 (z) + 1) + z;
  k2 = z2 * pow (10, (long long int) log10 (y) + 1) + y;
  k3 = z3 * pow (10, (long long int) log10 (z) + 1) + z;
  k4 = z4 * pow (10, (long long int) log10 (x) + 1) + x;
  k5 = z5 * pow (10, (long long int) log10 (y) + 1) + y;
  k6 = z6 * pow (10, (long long int) log10 (x) + 1) + x;
  arr[0] = k1;
  arr[1] = k2;
  arr[2] = k3;
  arr[3] = k4;
  arr[4] = k5;
  arr[5] = k6;
  max = arr[0];
  for (i = 0; i < 6; i++)
    {
      if (arr[i] > max)
	{
	  max = arr[i];
	}
    }
  printf ("%lld", max);
}