import java.io.*;
import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = Integer.valueOf(sc.next());
    int b = Integer.valueOf(sc.next());

    if (a < b) {
        for (int i = 0; i < b; i++) {
            System.out.print(a);
        }
        System.out.println();
      } else {
        for (int i = 0; i < a; i++) {
            System.out.print(b);
        }
        System.out.println();
      }
  }
} import java.io.*; io.* java import java.util.*; util.* java class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = Integer.valueOf(sc.next());
    int b = Integer.valueOf(sc.next());

    if (a < b) {
        for (int i = 0; i < b; i++) {
            System.out.print(a);
        }
        System.out.println();
      } else {
        for (int i = 0; i < a; i++) {
            System.out.print(b);
        }
        System.out.println();
      }
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = Integer.valueOf(sc.next());
    int b = Integer.valueOf(sc.next());

    if (a < b) {
        for (int i = 0; i < b; i++) {
            System.out.print(a);
        }
        System.out.println();
      } else {
        for (int i = 0; i < a; i++) {
            System.out.print(b);
        }
        System.out.println();
      }
  } main {
    Scanner sc = new Scanner(System.in);
    int a = Integer.valueOf(sc.next());
    int b = Integer.valueOf(sc.next());

    if (a < b) {
        for (int i = 0; i < b; i++) {
            System.out.print(a);
        }
        System.out.println();
      } else {
        for (int i = 0; i < a; i++) {
            System.out.print(b);
        }
        System.out.println();
      }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = Integer.valueOf(sc.next()); a Integer.valueOf(sc.next()) Integer.valueOf Integer sc.next() sc.next sc int b = Integer.valueOf(sc.next()); b Integer.valueOf(sc.next()) Integer.valueOf Integer sc.next() sc.next sc if (a < b) {
        for (int i = 0; i < b; i++) {
            System.out.print(a);
        }
        System.out.println();
      } else {
        for (int i = 0; i < a; i++) {
            System.out.print(b);
        }
        System.out.println();
      } a < b a b {
        for (int i = 0; i < b; i++) {
            System.out.print(a);
        }
        System.out.println();
      } 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 System.out.println() System.out.println System.out System System.out {
        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 String[] args args
import java.io.*;
import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = Integer.valueOf(sc.next());
    int b = Integer.valueOf(sc.next());

    if (a < b) {
        for (int i = 0; i < b; i++) {
            System.out.print(a);
        }
        System.out.println();
      } else {
        for (int i = 0; i < a; i++) {
            System.out.print(b);
        }
        System.out.println();
      }
  }
}