import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String b = sc.next();
    int c = Integer.parseInt(a);
    int d = Integer.parseInt(b);
    String x = "";
    if(c >= d){
      for(int i = 0; i < c; i++){
        x += b;
      }
      System.out.println(x);
    }else{
        for(int i = 0; i<d; i++){
          x += a;
        }
      System.out.println(x);
      }
      
    }
  } import java.util.Scanner; Scanner java.util class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String b = sc.next();
    int c = Integer.parseInt(a);
    int d = Integer.parseInt(b);
    String x = "";
    if(c >= d){
      for(int i = 0; i < c; i++){
        x += b;
      }
      System.out.println(x);
    }else{
        for(int i = 0; i<d; i++){
          x += a;
        }
      System.out.println(x);
      }
      
    }
  } Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String b = sc.next();
    int c = Integer.parseInt(a);
    int d = Integer.parseInt(b);
    String x = "";
    if(c >= d){
      for(int i = 0; i < c; i++){
        x += b;
      }
      System.out.println(x);
    }else{
        for(int i = 0; i<d; i++){
          x += a;
        }
      System.out.println(x);
      }
      
    } main {
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String b = sc.next();
    int c = Integer.parseInt(a);
    int d = Integer.parseInt(b);
    String x = "";
    if(c >= d){
      for(int i = 0; i < c; i++){
        x += b;
      }
      System.out.println(x);
    }else{
        for(int i = 0; i<d; i++){
          x += a;
        }
      System.out.println(x);
      }
      
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a = sc.next(); a sc.next() sc.next sc String b = sc.next(); b sc.next() sc.next sc int c = Integer.parseInt(a); c Integer.parseInt(a) Integer.parseInt Integer a int d = Integer.parseInt(b); d Integer.parseInt(b) Integer.parseInt Integer b String x = ""; x "" if(c >= d){
      for(int i = 0; i < c; i++){
        x += b;
      }
      System.out.println(x);
    }else{
        for(int i = 0; i<d; i++){
          x += a;
        }
      System.out.println(x);
      } c >= d c d {
      for(int i = 0; i < c; i++){
        x += b;
      }
      System.out.println(x);
    } for(int i = 0; i < c; i++){
        x += b;
      } int i = 0; int i = 0; i 0 i < c i c i++ i++ i {
        x += b;
      } {
        x += b;
      } x += b x b System.out.println(x) System.out.println System.out System System.out x {
        for(int i = 0; i<d; i++){
          x += a;
        }
      System.out.println(x);
      } for(int i = 0; i<d; i++){
          x += a;
        } int i = 0; int i = 0; i 0 i<d i d i++ i++ i {
          x += a;
        } {
          x += a;
        } x += a x a System.out.println(x) System.out.println System.out System System.out x String[] args args
import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String b = sc.next();
    int c = Integer.parseInt(a);
    int d = Integer.parseInt(b);
    String x = "";
    if(c >= d){
      for(int i = 0; i < c; i++){
        x += b;
      }
      System.out.println(x);
    }else{
        for(int i = 0; i<d; i++){
          x += a;
        }
      System.out.println(x);
      }
      
    }
  }
