import java.util.*;
 
public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int m = scan.nextInt();
    String a = "";
    String b = "";
 
    for (int i=0;i<m;i++){
      a += n+"";
    }
 
    for (int j=0;j<n;j++){
      b += m+"";
    }
 
    if (n>=m){
      System.out.println(b);
    }
    else{
      System.out.println(a);
    }
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int m = scan.nextInt();
    String a = "";
    String b = "";
 
    for (int i=0;i<m;i++){
      a += n+"";
    }
 
    for (int j=0;j<n;j++){
      b += m+"";
    }
 
    if (n>=m){
      System.out.println(b);
    }
    else{
      System.out.println(a);
    }
  }
} Main public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int m = scan.nextInt();
    String a = "";
    String b = "";
 
    for (int i=0;i<m;i++){
      a += n+"";
    }
 
    for (int j=0;j<n;j++){
      b += m+"";
    }
 
    if (n>=m){
      System.out.println(b);
    }
    else{
      System.out.println(a);
    }
  } main {
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int m = scan.nextInt();
    String a = "";
    String b = "";
 
    for (int i=0;i<m;i++){
      a += n+"";
    }
 
    for (int j=0;j<n;j++){
      b += m+"";
    }
 
    if (n>=m){
      System.out.println(b);
    }
    else{
      System.out.println(a);
    }
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int m = scan.nextInt(); m scan.nextInt() scan.nextInt scan String a = ""; a "" String b = ""; b "" for (int i=0;i<m;i++){
      a += n+"";
    } int i=0; int i=0; i 0 i<m i m i++ i++ i {
      a += n+"";
    } {
      a += n+"";
    } a += n+"" a n+"" n "" for (int j=0;j<n;j++){
      b += m+"";
    } int j=0; int j=0; j 0 j<n j n j++ j++ j {
      b += m+"";
    } {
      b += m+"";
    } b += m+"" b m+"" m "" if (n>=m){
      System.out.println(b);
    }
    else{
      System.out.println(a);
    } n>=m n m {
      System.out.println(b);
    } System.out.println(b) System.out.println System.out System System.out b {
      System.out.println(a);
    } System.out.println(a) System.out.println System.out System System.out a String[] args args public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int m = scan.nextInt();
    String a = "";
    String b = "";
 
    for (int i=0;i<m;i++){
      a += n+"";
    }
 
    for (int j=0;j<n;j++){
      b += m+"";
    }
 
    if (n>=m){
      System.out.println(b);
    }
    else{
      System.out.println(a);
    }
  }
} public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int m = scan.nextInt();
    String a = "";
    String b = "";
 
    for (int i=0;i<m;i++){
      a += n+"";
    }
 
    for (int j=0;j<n;j++){
      b += m+"";
    }
 
    if (n>=m){
      System.out.println(b);
    }
    else{
      System.out.println(a);
    }
  }
} Main
import java.util.*;
 
public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int m = scan.nextInt();
    String a = "";
    String b = "";
 
    for (int i=0;i<m;i++){
      a += n+"";
    }
 
    for (int j=0;j<n;j++){
      b += m+"";
    }
 
    if (n>=m){
      System.out.println(b);
    }
    else{
      System.out.println(a);
    }
  }
}