import java.util.Arrays;
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 A = String.valueOf(a);
      String B = String.valueOf(b);
      int i = 0;
      String str_a = "";
      String str_b = "";
      for(i=0;i<b;i++){
        str_a = str_a + A;
      }
      for(i=0;i<a;i++){
        str_b = str_b + B;
      }
      if(a!=b){
        if(a>b){
          System.out.println(str_b);
        }else{
          System.out.println(str_a);
        }
      }else{
        if(str_a.length()>str_b.length()){
          System.out.println(str_b);
        }else{
          System.out.println(str_a);
        }
      }
      
    }
} import java.util.Arrays; Arrays java.util 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 A = String.valueOf(a);
      String B = String.valueOf(b);
      int i = 0;
      String str_a = "";
      String str_b = "";
      for(i=0;i<b;i++){
        str_a = str_a + A;
      }
      for(i=0;i<a;i++){
        str_b = str_b + B;
      }
      if(a!=b){
        if(a>b){
          System.out.println(str_b);
        }else{
          System.out.println(str_a);
        }
      }else{
        if(str_a.length()>str_b.length()){
          System.out.println(str_b);
        }else{
          System.out.println(str_a);
        }
      }
      
    }
} Main public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      String A = String.valueOf(a);
      String B = String.valueOf(b);
      int i = 0;
      String str_a = "";
      String str_b = "";
      for(i=0;i<b;i++){
        str_a = str_a + A;
      }
      for(i=0;i<a;i++){
        str_b = str_b + B;
      }
      if(a!=b){
        if(a>b){
          System.out.println(str_b);
        }else{
          System.out.println(str_a);
        }
      }else{
        if(str_a.length()>str_b.length()){
          System.out.println(str_b);
        }else{
          System.out.println(str_a);
        }
      }
      
    } main {
    Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      String A = String.valueOf(a);
      String B = String.valueOf(b);
      int i = 0;
      String str_a = "";
      String str_b = "";
      for(i=0;i<b;i++){
        str_a = str_a + A;
      }
      for(i=0;i<a;i++){
        str_b = str_b + B;
      }
      if(a!=b){
        if(a>b){
          System.out.println(str_b);
        }else{
          System.out.println(str_a);
        }
      }else{
        if(str_a.length()>str_b.length()){
          System.out.println(str_b);
        }else{
          System.out.println(str_a);
        }
      }
      
    } 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 A = String.valueOf(a); A String.valueOf(a) String.valueOf String a String B = String.valueOf(b); B String.valueOf(b) String.valueOf String b int i = 0; i 0 String str_a = ""; str_a "" String str_b = ""; str_b "" for(i=0;i<b;i++){
        str_a = str_a + A;
      } i=0; i=0 i 0 i<b i b i++ i++ i {
        str_a = str_a + A;
      } {
        str_a = str_a + A;
      } str_a = str_a + A str_a str_a + A str_a A for(i=0;i<a;i++){
        str_b = str_b + B;
      } i=0; i=0 i 0 i<a i a i++ i++ i {
        str_b = str_b + B;
      } {
        str_b = str_b + B;
      } str_b = str_b + B str_b str_b + B str_b B if(a!=b){
        if(a>b){
          System.out.println(str_b);
        }else{
          System.out.println(str_a);
        }
      }else{
        if(str_a.length()>str_b.length()){
          System.out.println(str_b);
        }else{
          System.out.println(str_a);
        }
      } a!=b a b {
        if(a>b){
          System.out.println(str_b);
        }else{
          System.out.println(str_a);
        }
      } if(a>b){
          System.out.println(str_b);
        }else{
          System.out.println(str_a);
        } a>b a b {
          System.out.println(str_b);
        } System.out.println(str_b) System.out.println System.out System System.out str_b {
          System.out.println(str_a);
        } System.out.println(str_a) System.out.println System.out System System.out str_a {
        if(str_a.length()>str_b.length()){
          System.out.println(str_b);
        }else{
          System.out.println(str_a);
        }
      } if(str_a.length()>str_b.length()){
          System.out.println(str_b);
        }else{
          System.out.println(str_a);
        } str_a.length()>str_b.length() str_a.length() str_a.length str_a str_b.length() str_b.length str_b {
          System.out.println(str_b);
        } System.out.println(str_b) System.out.println System.out System System.out str_b {
          System.out.println(str_a);
        } System.out.println(str_a) System.out.println System.out System System.out str_a 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 A = String.valueOf(a);
      String B = String.valueOf(b);
      int i = 0;
      String str_a = "";
      String str_b = "";
      for(i=0;i<b;i++){
        str_a = str_a + A;
      }
      for(i=0;i<a;i++){
        str_b = str_b + B;
      }
      if(a!=b){
        if(a>b){
          System.out.println(str_b);
        }else{
          System.out.println(str_a);
        }
      }else{
        if(str_a.length()>str_b.length()){
          System.out.println(str_b);
        }else{
          System.out.println(str_a);
        }
      }
      
    }
} public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      String A = String.valueOf(a);
      String B = String.valueOf(b);
      int i = 0;
      String str_a = "";
      String str_b = "";
      for(i=0;i<b;i++){
        str_a = str_a + A;
      }
      for(i=0;i<a;i++){
        str_b = str_b + B;
      }
      if(a!=b){
        if(a>b){
          System.out.println(str_b);
        }else{
          System.out.println(str_a);
        }
      }else{
        if(str_a.length()>str_b.length()){
          System.out.println(str_b);
        }else{
          System.out.println(str_a);
        }
      }
      
    }
} Main
import java.util.Arrays;
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 A = String.valueOf(a);
      String B = String.valueOf(b);
      int i = 0;
      String str_a = "";
      String str_b = "";
      for(i=0;i<b;i++){
        str_a = str_a + A;
      }
      for(i=0;i<a;i++){
        str_b = str_b + B;
      }
      if(a!=b){
        if(a>b){
          System.out.println(str_b);
        }else{
          System.out.println(str_a);
        }
      }else{
        if(str_a.length()>str_b.length()){
          System.out.println(str_b);
        }else{
          System.out.println(str_a);
        }
      }
      
    }
}
