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 s = Math.min(a,b);
    int l = Math.max(a,b);
    for(int i=0;i<l;i++){
      System.out.print(s);
    }
    System.out.println();
  }
} 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 s = Math.min(a,b);
    int l = Math.max(a,b);
    for(int i=0;i<l;i++){
      System.out.print(s);
    }
    System.out.println();
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int s = Math.min(a,b);
    int l = Math.max(a,b);
    for(int i=0;i<l;i++){
      System.out.print(s);
    }
    System.out.println();
  } main {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int s = Math.min(a,b);
    int l = Math.max(a,b);
    for(int i=0;i<l;i++){
      System.out.print(s);
    }
    System.out.println();
  } 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 s = Math.min(a,b); s Math.min(a,b) Math.min Math a b int l = Math.max(a,b); l Math.max(a,b) Math.max Math a b for(int i=0;i<l;i++){
      System.out.print(s);
    } int i=0; int i=0; i 0 i<l i l i++ i++ i {
      System.out.print(s);
    } {
      System.out.print(s);
    } System.out.print(s) System.out.print System.out System System.out s System.out.println() System.out.println System.out System System.out 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 s = Math.min(a,b);
    int l = Math.max(a,b);
    for(int i=0;i<l;i++){
      System.out.print(s);
    }
    System.out.println();
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int s = Math.min(a,b);
    int l = Math.max(a,b);
    for(int i=0;i<l;i++){
      System.out.print(s);
    }
    System.out.println();
  }
} 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 s = Math.min(a,b);
    int l = Math.max(a,b);
    for(int i=0;i<l;i++){
      System.out.print(s);
    }
    System.out.println();
  }
}
