import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
 
public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str_array = in.readLine().split(" ");
    int a = Integer.parseInt(str_array[0]);
    int b = Integer.parseInt(str_array[1]);
    if(a>b){
      for(int i=0;i<a;i++){
        System.out.print(b);
      }
    }else{
      for(int i=0;i<b;i++){
        System.out.print(a);
      }
    }
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str_array = in.readLine().split(" ");
    int a = Integer.parseInt(str_array[0]);
    int b = Integer.parseInt(str_array[1]);
    if(a>b){
      for(int i=0;i<a;i++){
        System.out.print(b);
      }
    }else{
      for(int i=0;i<b;i++){
        System.out.print(a);
      }
    }
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str_array = in.readLine().split(" ");
    int a = Integer.parseInt(str_array[0]);
    int b = Integer.parseInt(str_array[1]);
    if(a>b){
      for(int i=0;i<a;i++){
        System.out.print(b);
      }
    }else{
      for(int i=0;i<b;i++){
        System.out.print(a);
      }
    }
  } main {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str_array = in.readLine().split(" ");
    int a = Integer.parseInt(str_array[0]);
    int b = Integer.parseInt(str_array[1]);
    if(a>b){
      for(int i=0;i<a;i++){
        System.out.print(b);
      }
    }else{
      for(int i=0;i<b;i++){
        System.out.print(a);
      }
    }
  } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String[] str_array = in.readLine().split(" "); str_array in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " int a = Integer.parseInt(str_array[0]); a Integer.parseInt(str_array[0]) Integer.parseInt Integer str_array[0] str_array 0 int b = Integer.parseInt(str_array[1]); b Integer.parseInt(str_array[1]) Integer.parseInt Integer str_array[1] str_array 1 if(a>b){
      for(int i=0;i<a;i++){
        System.out.print(b);
      }
    }else{
      for(int i=0;i<b;i++){
        System.out.print(a);
      }
    } a>b a b {
      for(int i=0;i<a;i++){
        System.out.print(b);
      }
    } 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 {
      for(int i=0;i<b;i++){
        System.out.print(a);
      }
    } for(int i=0;i<b;i++){
        System.out.print(a);
      } int i=0; int i=0; i 0 i<b i b 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) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str_array = in.readLine().split(" ");
    int a = Integer.parseInt(str_array[0]);
    int b = Integer.parseInt(str_array[1]);
    if(a>b){
      for(int i=0;i<a;i++){
        System.out.print(b);
      }
    }else{
      for(int i=0;i<b;i++){
        System.out.print(a);
      }
    }
  }
} public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str_array = in.readLine().split(" ");
    int a = Integer.parseInt(str_array[0]);
    int b = Integer.parseInt(str_array[1]);
    if(a>b){
      for(int i=0;i<a;i++){
        System.out.print(b);
      }
    }else{
      for(int i=0;i<b;i++){
        System.out.print(a);
      }
    }
  }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
 
public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str_array = in.readLine().split(" ");
    int a = Integer.parseInt(str_array[0]);
    int b = Integer.parseInt(str_array[1]);
    if(a>b){
      for(int i=0;i<a;i++){
        System.out.print(b);
      }
    }else{
      for(int i=0;i<b;i++){
        System.out.print(a);
      }
    }
  }
}