import java.util.*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    int n = a < b ? a : b;
    int m = a > b ? a : b;
    for (int i = 0; i < m; i++) {
      System.out.print(n);
    }
    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 = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    int n = a < b ? a : b;
    int m = a > b ? a : b;
    for (int i = 0; i < m; i++) {
      System.out.print(n);
    }
    System.out.println();
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    int n = a < b ? a : b;
    int m = a > b ? a : b;
    for (int i = 0; i < m; i++) {
      System.out.print(n);
    }
    System.out.println();
  } main {
    Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    int n = a < b ? a : b;
    int m = a > b ? a : b;
    for (int i = 0; i < m; i++) {
      System.out.print(n);
    }
    System.out.println();
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int b = Integer.parseInt(sc.next()); b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int n = a < b ? a : b; n a < b ? a : b a < b a b a b int m = a > b ? a : b; m a > b ? a : b a > b a b a b for (int i = 0; i < m; i++) {
      System.out.print(n);
    } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
      System.out.print(n);
    } {
      System.out.print(n);
    } System.out.print(n) System.out.print System.out System System.out n 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 = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    int n = a < b ? a : b;
    int m = a > b ? a : b;
    for (int i = 0; i < m; i++) {
      System.out.print(n);
    }
    System.out.println();
  }
} public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    int n = a < b ? a : b;
    int m = a > b ? a : b;
    for (int i = 0; i < m; i++) {
      System.out.print(n);
    }
    System.out.println();
  }
} Main
import java.util.*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    int n = a < b ? a : b;
    int m = a > b ? a : b;
    for (int i = 0; i < m; i++) {
      System.out.print(n);
    }
    System.out.println();
  }
}