import java.util.*;
import java.lang.Math;

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

public class Main {
public static void main(String[] args) {
  
  Scanner sc = new Scanner(System.in);
	
  int a,b,loop;
  
  a = sc.nextInt();
  b = sc.nextInt();
  loop = 0;
  
  if (a > b) {
    loop = a;
    
     for(int i = 0; i < loop; i++) {
     	System.out.print(b); 
    }
    
  } else {
    loop = b; 
    
      for(int i = 0; i < loop; i++) {
     	System.out.print(a); 
    }
    
  }
  
	}
}