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();
    
    String strA = String.valueOf(a);
    String strB = String.valueOf(b);
    String answer = "";
    
    if (a == b || a < b) {

       while (b > 0) {
        answer = answer.concat(strA);
        b--;
      }
      System.out.println(answer);
 
    } else {
      
             while (a > 0) {
          answer = answer.concat(strB);
          a--;
       }

     System.out.println(answer);
    }
 
  }
} 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();
    
    String strA = String.valueOf(a);
    String strB = String.valueOf(b);
    String answer = "";
    
    if (a == b || a < b) {

       while (b > 0) {
        answer = answer.concat(strA);
        b--;
      }
      System.out.println(answer);
 
    } else {
      
             while (a > 0) {
          answer = answer.concat(strB);
          a--;
       }

     System.out.println(answer);
    }
 
  }
} Main public static void main(String args[]) {
   
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    
    String strA = String.valueOf(a);
    String strB = String.valueOf(b);
    String answer = "";
    
    if (a == b || a < b) {

       while (b > 0) {
        answer = answer.concat(strA);
        b--;
      }
      System.out.println(answer);
 
    } else {
      
             while (a > 0) {
          answer = answer.concat(strB);
          a--;
       }

     System.out.println(answer);
    }
 
  } main {
   
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    
    String strA = String.valueOf(a);
    String strB = String.valueOf(b);
    String answer = "";
    
    if (a == b || a < b) {

       while (b > 0) {
        answer = answer.concat(strA);
        b--;
      }
      System.out.println(answer);
 
    } else {
      
             while (a > 0) {
          answer = answer.concat(strB);
          a--;
       }

     System.out.println(answer);
    }
 
  } 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 String strA = String.valueOf(a); strA String.valueOf(a) String.valueOf String a String strB = String.valueOf(b); strB String.valueOf(b) String.valueOf String b String answer = ""; answer "" if (a == b || a < b) {

       while (b > 0) {
        answer = answer.concat(strA);
        b--;
      }
      System.out.println(answer);
 
    } else {
      
             while (a > 0) {
          answer = answer.concat(strB);
          a--;
       }

     System.out.println(answer);
    } a == b || a < b a == b a b a < b a b {

       while (b > 0) {
        answer = answer.concat(strA);
        b--;
      }
      System.out.println(answer);
 
    } while (b > 0) {
        answer = answer.concat(strA);
        b--;
      } b > 0 b 0 {
        answer = answer.concat(strA);
        b--;
      } answer = answer.concat(strA) answer answer.concat(strA) answer.concat answer strA b-- b System.out.println(answer) System.out.println System.out System System.out answer {
      
             while (a > 0) {
          answer = answer.concat(strB);
          a--;
       }

     System.out.println(answer);
    } while (a > 0) {
          answer = answer.concat(strB);
          a--;
       } a > 0 a 0 {
          answer = answer.concat(strB);
          a--;
       } answer = answer.concat(strB) answer answer.concat(strB) answer.concat answer strB a-- a System.out.println(answer) System.out.println System.out System System.out answer 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();
    
    String strA = String.valueOf(a);
    String strB = String.valueOf(b);
    String answer = "";
    
    if (a == b || a < b) {

       while (b > 0) {
        answer = answer.concat(strA);
        b--;
      }
      System.out.println(answer);
 
    } else {
      
             while (a > 0) {
          answer = answer.concat(strB);
          a--;
       }

     System.out.println(answer);
    }
 
  }
} public class Main {
 
  public static void main(String args[]) {
   
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    
    String strA = String.valueOf(a);
    String strB = String.valueOf(b);
    String answer = "";
    
    if (a == b || a < b) {

       while (b > 0) {
        answer = answer.concat(strA);
        b--;
      }
      System.out.println(answer);
 
    } else {
      
             while (a > 0) {
          answer = answer.concat(strB);
          a--;
       }

     System.out.println(answer);
    }
 
  }
} 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();
    
    String strA = String.valueOf(a);
    String strB = String.valueOf(b);
    String answer = "";
    
    if (a == b || a < b) {

       while (b > 0) {
        answer = answer.concat(strA);
        b--;
      }
      System.out.println(answer);
 
    } else {
      
             while (a > 0) {
          answer = answer.concat(strB);
          a--;
       }

     System.out.println(answer);
    }
 
  }
}