package com.company;

import java.math.BigInteger;

public class Main {

  public static void main(String[] args) {
    java.util.Scanner sc = new java.util.Scanner(System.in);
    String A = new String(sc.next());
    String B = new String(sc.next());
    String C = new String(sc.next());
    BigInteger b1 = new BigInteger(A + B + C val);
    BigInteger b2 = new BigInteger(A + C + B val);
    BigInteger b3 = new BigInteger(B + A + C val);
    BigInteger b4 = new BigInteger(B + C + A val);
    BigInteger b5 = new BigInteger(C + A + B val);
    BigInteger b6 = new BigInteger(C + B + A val);
    BigInteger max = new BigInteger("0");
    if (b1.compareTo(max) == 1) {
      max = b1;
    }
    if (b2.compareTo(max) == 1) {
      max = b2;
    }
    if (b3.compareTo(max) == 1) {
      max = b3;
    }
    if (b4.compareTo(max) == 1) {
      max = b4;
    }
    if (b5.compareTo(max) == 1) {
      max = b5;
    }
    if (b6.compareTo(max) == 1) {
      max = b6;
    }
    System.out.println(max);
  }
}