import java.util.*;
public class Main {
  
  private static void roop(int a, int b){
    for(int i = 0; i < a; i++){
      System.out.print(b);
    }
    System.out.println();
  }
  
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
    int b = sc.nextInt();
    //char[] a = sc.nextLine().toCharArray();
    if(a < b){
      roop(b,a);
    }
    else
    {
      roop(a,b);
    }
  }
} import java.util.*; util.* java public class Main {
  
  private static void roop(int a, int b){
    for(int i = 0; i < a; i++){
      System.out.print(b);
    }
    System.out.println();
  }
  
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
    int b = sc.nextInt();
    //char[] a = sc.nextLine().toCharArray();
    if(a < b){
      roop(b,a);
    }
    else
    {
      roop(a,b);
    }
  }
} Main private static void roop(int a, int b){
    for(int i = 0; i < a; i++){
      System.out.print(b);
    }
    System.out.println();
  } roop {
    for(int i = 0; i < a; i++){
      System.out.print(b);
    }
    System.out.println();
  } for(int i = 0; i < a; i++){
      System.out.print(b);
    } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
      System.out.print(b);
    } {
      System.out.print(b);
    } System.out.print(b) System.out.print System.out System System.out b System.out.println() System.out.println System.out System System.out int a a int b b public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
    int b = sc.nextInt();
    //char[] a = sc.nextLine().toCharArray();
    if(a < b){
      roop(b,a);
    }
    else
    {
      roop(a,b);
    }
  } main {
    Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
    int b = sc.nextInt();
    //char[] a = sc.nextLine().toCharArray();
    if(a < b){
      roop(b,a);
    }
    else
    {
      roop(a,b);
    }
  } 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 if(a < b){
      roop(b,a);
    }
    else
    {
      roop(a,b);
    } a < b a b {
      roop(b,a);
    } roop(b,a) roop b a {
      roop(a,b);
    } roop(a,b) roop a b String[] args args public class Main {
  
  private static void roop(int a, int b){
    for(int i = 0; i < a; i++){
      System.out.print(b);
    }
    System.out.println();
  }
  
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
    int b = sc.nextInt();
    //char[] a = sc.nextLine().toCharArray();
    if(a < b){
      roop(b,a);
    }
    else
    {
      roop(a,b);
    }
  }
} public class Main {
  
  private static void roop(int a, int b){
    for(int i = 0; i < a; i++){
      System.out.print(b);
    }
    System.out.println();
  }
  
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
    int b = sc.nextInt();
    //char[] a = sc.nextLine().toCharArray();
    if(a < b){
      roop(b,a);
    }
    else
    {
      roop(a,b);
    }
  }
} Main
import java.util.*;
public class Main {
  
  private static void roop(int a, int b){
    for(int i = 0; i < a; i++){
      System.out.print(b);
    }
    System.out.println();
  }
  
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
    int b = sc.nextInt();
    //char[] a = sc.nextLine().toCharArray();
    if(a < b){
      roop(b,a);
    }
    else
    {
      roop(a,b);
    }
  }
}