import java.util.*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int j = 1;
    if (b<=a){
      for (int i=1;i<=a;i++){
        j*=10;
      }
        System.out.println(b*(j-1)/9);}
    else {
      for(int i=1;i<=b;i++){
        j*=10;
      }
      System.out.println(a*(j-1)/9);};
  }
}
           import java.util.*; util.* java public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int j = 1;
    if (b<=a){
      for (int i=1;i<=a;i++){
        j*=10;
      }
        System.out.println(b*(j-1)/9);}
    else {
      for(int i=1;i<=b;i++){
        j*=10;
      }
      System.out.println(a*(j-1)/9);};
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int j = 1;
    if (b<=a){
      for (int i=1;i<=a;i++){
        j*=10;
      }
        System.out.println(b*(j-1)/9);}
    else {
      for(int i=1;i<=b;i++){
        j*=10;
      }
      System.out.println(a*(j-1)/9);};
  } main {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int j = 1;
    if (b<=a){
      for (int i=1;i<=a;i++){
        j*=10;
      }
        System.out.println(b*(j-1)/9);}
    else {
      for(int i=1;i<=b;i++){
        j*=10;
      }
      System.out.println(a*(j-1)/9);};
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int j = 1; j 1 if (b<=a){
      for (int i=1;i<=a;i++){
        j*=10;
      }
        System.out.println(b*(j-1)/9);}
    else {
      for(int i=1;i<=b;i++){
        j*=10;
      }
      System.out.println(a*(j-1)/9);} b<=a b a {
      for (int i=1;i<=a;i++){
        j*=10;
      }
        System.out.println(b*(j-1)/9);} for (int i=1;i<=a;i++){
        j*=10;
      } int i=1; int i=1; i 1 i<=a i a i++ i++ i {
        j*=10;
      } {
        j*=10;
      } j*=10 j 10 System.out.println(b*(j-1)/9) System.out.println System.out System System.out b*(j-1)/9 b*(j-1) b (j-1) j 1 9 {
      for(int i=1;i<=b;i++){
        j*=10;
      }
      System.out.println(a*(j-1)/9);} for(int i=1;i<=b;i++){
        j*=10;
      } int i=1; int i=1; i 1 i<=b i b i++ i++ i {
        j*=10;
      } {
        j*=10;
      } j*=10 j 10 System.out.println(a*(j-1)/9) System.out.println System.out System System.out a*(j-1)/9 a*(j-1) a (j-1) j 1 9 String[] args args public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int j = 1;
    if (b<=a){
      for (int i=1;i<=a;i++){
        j*=10;
      }
        System.out.println(b*(j-1)/9);}
    else {
      for(int i=1;i<=b;i++){
        j*=10;
      }
      System.out.println(a*(j-1)/9);};
  }
} public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int j = 1;
    if (b<=a){
      for (int i=1;i<=a;i++){
        j*=10;
      }
        System.out.println(b*(j-1)/9);}
    else {
      for(int i=1;i<=b;i++){
        j*=10;
      }
      System.out.println(a*(j-1)/9);};
  }
} Main
import java.util.*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int j = 1;
    if (b<=a){
      for (int i=1;i<=a;i++){
        j*=10;
      }
        System.out.println(b*(j-1)/9);}
    else {
      for(int i=1;i<=b;i++){
        j*=10;
      }
      System.out.println(a*(j-1)/9);};
  }
}
          
