import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int M = sc.nextInt();

    if (N < M) {
      for (int i = 0; i < M; i++) {
        System.out.print(N);
      }
    } else if (M < N) {
      for (int j = 0; j < N; j++) {
        System.out.print(M);
      }
    } else {
      for (int k = 0; k < N; k++) {
        System.out.print(N);
      }
    }
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int M = sc.nextInt();

    if (N < M) {
      for (int i = 0; i < M; i++) {
        System.out.print(N);
      }
    } else if (M < N) {
      for (int j = 0; j < N; j++) {
        System.out.print(M);
      }
    } else {
      for (int k = 0; k < N; k++) {
        System.out.print(N);
      }
    }
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int M = sc.nextInt();

    if (N < M) {
      for (int i = 0; i < M; i++) {
        System.out.print(N);
      }
    } else if (M < N) {
      for (int j = 0; j < N; j++) {
        System.out.print(M);
      }
    } else {
      for (int k = 0; k < N; k++) {
        System.out.print(N);
      }
    }
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int M = sc.nextInt();

    if (N < M) {
      for (int i = 0; i < M; i++) {
        System.out.print(N);
      }
    } else if (M < N) {
      for (int j = 0; j < N; j++) {
        System.out.print(M);
      }
    } else {
      for (int k = 0; k < N; k++) {
        System.out.print(N);
      }
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int M = sc.nextInt(); M sc.nextInt() sc.nextInt sc if (N < M) {
      for (int i = 0; i < M; i++) {
        System.out.print(N);
      }
    } else if (M < N) {
      for (int j = 0; j < N; j++) {
        System.out.print(M);
      }
    } else {
      for (int k = 0; k < N; k++) {
        System.out.print(N);
      }
    } N < M N M {
      for (int i = 0; i < M; i++) {
        System.out.print(N);
      }
    } 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 if (M < N) {
      for (int j = 0; j < N; j++) {
        System.out.print(M);
      }
    } else {
      for (int k = 0; k < N; k++) {
        System.out.print(N);
      }
    } M < N M N {
      for (int j = 0; j < N; j++) {
        System.out.print(M);
      }
    } for (int j = 0; j < N; j++) {
        System.out.print(M);
      } int j = 0; int j = 0; j 0 j < N j N j++ j++ j {
        System.out.print(M);
      } {
        System.out.print(M);
      } System.out.print(M) System.out.print System.out System System.out M {
      for (int k = 0; k < N; k++) {
        System.out.print(N);
      }
    } for (int k = 0; k < N; k++) {
        System.out.print(N);
      } int k = 0; int k = 0; k 0 k < N k N k++ k++ k {
        System.out.print(N);
      } {
        System.out.print(N);
      } System.out.print(N) System.out.print System.out System System.out N String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int M = sc.nextInt();

    if (N < M) {
      for (int i = 0; i < M; i++) {
        System.out.print(N);
      }
    } else if (M < N) {
      for (int j = 0; j < N; j++) {
        System.out.print(M);
      }
    } else {
      for (int k = 0; k < N; k++) {
        System.out.print(N);
      }
    }
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int M = sc.nextInt();

    if (N < M) {
      for (int i = 0; i < M; i++) {
        System.out.print(N);
      }
    } else if (M < N) {
      for (int j = 0; j < N; j++) {
        System.out.print(M);
      }
    } else {
      for (int k = 0; k < N; k++) {
        System.out.print(N);
      }
    }
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int M = sc.nextInt();

    if (N < M) {
      for (int i = 0; i < M; i++) {
        System.out.print(N);
      }
    } else if (M < N) {
      for (int j = 0; j < N; j++) {
        System.out.print(M);
      }
    } else {
      for (int k = 0; k < N; k++) {
        System.out.print(N);
      }
    }
  }
}