import java.util.*;
public class Main{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int total = 0;
    if(a<b){
      for(int i=1 ; i<b ; i++){
        int c = (int)Math.pow(10,i);
        total = total + c*a;
      }
      total = total + a;
    }else{
      for(int i=1 ; i<a ; i++){
        int c = (int)Math.pow(10,i);
        total = total + c*b;
      }
      total = total + b;
    }
    System.out.println(total);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int total = 0;
    if(a<b){
      for(int i=1 ; i<b ; i++){
        int c = (int)Math.pow(10,i);
        total = total + c*a;
      }
      total = total + a;
    }else{
      for(int i=1 ; i<a ; i++){
        int c = (int)Math.pow(10,i);
        total = total + c*b;
      }
      total = total + b;
    }
    System.out.println(total);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int total = 0;
    if(a<b){
      for(int i=1 ; i<b ; i++){
        int c = (int)Math.pow(10,i);
        total = total + c*a;
      }
      total = total + a;
    }else{
      for(int i=1 ; i<a ; i++){
        int c = (int)Math.pow(10,i);
        total = total + c*b;
      }
      total = total + b;
    }
    System.out.println(total);
  } main {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int total = 0;
    if(a<b){
      for(int i=1 ; i<b ; i++){
        int c = (int)Math.pow(10,i);
        total = total + c*a;
      }
      total = total + a;
    }else{
      for(int i=1 ; i<a ; i++){
        int c = (int)Math.pow(10,i);
        total = total + c*b;
      }
      total = total + b;
    }
    System.out.println(total);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int total = 0; total 0 if(a<b){
      for(int i=1 ; i<b ; i++){
        int c = (int)Math.pow(10,i);
        total = total + c*a;
      }
      total = total + a;
    }else{
      for(int i=1 ; i<a ; i++){
        int c = (int)Math.pow(10,i);
        total = total + c*b;
      }
      total = total + b;
    } a<b a b {
      for(int i=1 ; i<b ; i++){
        int c = (int)Math.pow(10,i);
        total = total + c*a;
      }
      total = total + a;
    } for(int i=1 ; i<b ; i++){
        int c = (int)Math.pow(10,i);
        total = total + c*a;
      } int i=1 ; int i=1 ; i 1 i<b i b i++ i++ i {
        int c = (int)Math.pow(10,i);
        total = total + c*a;
      } {
        int c = (int)Math.pow(10,i);
        total = total + c*a;
      } int c = (int)Math.pow(10,i); c (int)Math.pow(10,i) Math.pow Math 10 i total = total + c*a total total + c*a total c*a c a total = total + a total total + a total a {
      for(int i=1 ; i<a ; i++){
        int c = (int)Math.pow(10,i);
        total = total + c*b;
      }
      total = total + b;
    } for(int i=1 ; i<a ; i++){
        int c = (int)Math.pow(10,i);
        total = total + c*b;
      } int i=1 ; int i=1 ; i 1 i<a i a i++ i++ i {
        int c = (int)Math.pow(10,i);
        total = total + c*b;
      } {
        int c = (int)Math.pow(10,i);
        total = total + c*b;
      } int c = (int)Math.pow(10,i); c (int)Math.pow(10,i) Math.pow Math 10 i total = total + c*b total total + c*b total c*b c b total = total + b total total + b total b System.out.println(total) System.out.println System.out System System.out total String[] args args public class Main{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int total = 0;
    if(a<b){
      for(int i=1 ; i<b ; i++){
        int c = (int)Math.pow(10,i);
        total = total + c*a;
      }
      total = total + a;
    }else{
      for(int i=1 ; i<a ; i++){
        int c = (int)Math.pow(10,i);
        total = total + c*b;
      }
      total = total + b;
    }
    System.out.println(total);
  }
} public class Main{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int total = 0;
    if(a<b){
      for(int i=1 ; i<b ; i++){
        int c = (int)Math.pow(10,i);
        total = total + c*a;
      }
      total = total + a;
    }else{
      for(int i=1 ; i<a ; i++){
        int c = (int)Math.pow(10,i);
        total = total + c*b;
      }
      total = total + b;
    }
    System.out.println(total);
  }
} Main
import java.util.*;
public class Main{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int total = 0;
    if(a<b){
      for(int i=1 ; i<b ; i++){
        int c = (int)Math.pow(10,i);
        total = total + c*a;
      }
      total = total + a;
    }else{
      for(int i=1 ; i<a ; i++){
        int c = (int)Math.pow(10,i);
        total = total + c*b;
      }
      total = total + b;
    }
    System.out.println(total);
  }
}
