using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace petljaTakm
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] s = Console.ReadLine().Split(' ');
            long a = long.Parse(s[0]);
            long b = long.Parse(s[1]);
            long c = long.Parse(s[2]);

            long[] brCifara = new long[3]{1,1,1};
            long temp=a;
            while (temp >= 10)
            {
                temp /= 10;
                brCifara[0]++;
            }
            temp = b;
            while (temp >= 10)
            {
                temp /= 10;
                brCifara[1]++;
            }
            temp = c;
            while (temp >= 10)
            {
                temp /= 10;
                brCifara[2]++;
            }
            long[] brojevi = new long[6];
            //Console.WriteLine(brCifara[0] + " " + brCifara[1] + " " + brCifara[2]);
            //1 abc
            brojevi[0] = (a * (long)Math.Pow(10, brCifara[1])+b)*((long)Math.Pow(10,brCifara[2]))+c;
            //Console.WriteLine(brojevi[0]);
            //2 acb
            brojevi[1] = (a * (long)Math.Pow(10, brCifara[2]) + c) * ((long)Math.Pow(10, brCifara[1])) + b;
            //Console.WriteLine(brojevi[1]);
            //3 bac
            brojevi[2] = (b * (long)Math.Pow(10, brCifara[0]) + a) * ((long)Math.Pow(10, brCifara[2])) + c;
            //Console.WriteLine(brojevi[2]);
            //4 bca
            brojevi[3] = (b * (long)Math.Pow(10, brCifara[2]) + c) * ((long)Math.Pow(10, brCifara[0])) + a;
            //Console.WriteLine(brojevi[3]);
            //5 cab
            brojevi[4] = (c * (long)Math.Pow(10, brCifara[0]) + a) * ((long)Math.Pow(10, brCifara[1])) + b;
            //Console.WriteLine(brojevi[4]);
            //6 cba
            brojevi[5] = (c * (long)Math.Pow(10, brCifara[1]) + b) * ((long)Math.Pow(10, brCifara[0])) + a;
            //Console.WriteLine(brojevi[5]);

            Console.WriteLine(Math.Max(Math.Max(Math.Max(Math.Max(Math.Max(brojevi[0],brojevi[1]),brojevi[2]),brojevi[3]),brojevi[4]),brojevi[5]));
        }
    }
}