import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int a = scan.nextInt();
    int b = scan.nextInt();
    scan.close();

    int x, y;
    if(a > b) {
      x = b;
      y = a;
    }
    else if(a == b) {
      x = a;
      y = a;
    }
    else {
      x = a;
      y = b;
    }

    for(int i=0; i<y; i++) {
      System.out.print(x);
    }
    System.out.println();
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int a = scan.nextInt();
    int b = scan.nextInt();
    scan.close();

    int x, y;
    if(a > b) {
      x = b;
      y = a;
    }
    else if(a == b) {
      x = a;
      y = a;
    }
    else {
      x = a;
      y = b;
    }

    for(int i=0; i<y; i++) {
      System.out.print(x);
    }
    System.out.println();
  }
} Main public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int a = scan.nextInt();
    int b = scan.nextInt();
    scan.close();

    int x, y;
    if(a > b) {
      x = b;
      y = a;
    }
    else if(a == b) {
      x = a;
      y = a;
    }
    else {
      x = a;
      y = b;
    }

    for(int i=0; i<y; i++) {
      System.out.print(x);
    }
    System.out.println();
  } main {
    Scanner scan = new Scanner(System.in);
    int a = scan.nextInt();
    int b = scan.nextInt();
    scan.close();

    int x, y;
    if(a > b) {
      x = b;
      y = a;
    }
    else if(a == b) {
      x = a;
      y = a;
    }
    else {
      x = a;
      y = b;
    }

    for(int i=0; i<y; i++) {
      System.out.print(x);
    }
    System.out.println();
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan scan.close() scan.close scan int x x y; y if(a > b) {
      x = b;
      y = a;
    }
    else if(a == b) {
      x = a;
      y = a;
    }
    else {
      x = a;
      y = b;
    } a > b a b {
      x = b;
      y = a;
    } x = b x b y = a y a if(a == b) {
      x = a;
      y = a;
    }
    else {
      x = a;
      y = b;
    } a == b a b {
      x = a;
      y = a;
    } x = a x a y = a y a {
      x = a;
      y = b;
    } x = a x a y = b y b for(int i=0; i<y; i++) {
      System.out.print(x);
    } int i=0; int i=0; i 0 i<y i y i++ i++ i {
      System.out.print(x);
    } {
      System.out.print(x);
    } System.out.print(x) System.out.print System.out System System.out x System.out.println() System.out.println System.out System System.out String[] args args public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int a = scan.nextInt();
    int b = scan.nextInt();
    scan.close();

    int x, y;
    if(a > b) {
      x = b;
      y = a;
    }
    else if(a == b) {
      x = a;
      y = a;
    }
    else {
      x = a;
      y = b;
    }

    for(int i=0; i<y; i++) {
      System.out.print(x);
    }
    System.out.println();
  }
} public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int a = scan.nextInt();
    int b = scan.nextInt();
    scan.close();

    int x, y;
    if(a > b) {
      x = b;
      y = a;
    }
    else if(a == b) {
      x = a;
      y = a;
    }
    else {
      x = a;
      y = b;
    }

    for(int i=0; i<y; i++) {
      System.out.print(x);
    }
    System.out.println();
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int a = scan.nextInt();
    int b = scan.nextInt();
    scan.close();

    int x, y;
    if(a > b) {
      x = b;
      y = a;
    }
    else if(a == b) {
      x = a;
      y = a;
    }
    else {
      x = a;
      y = b;
    }

    for(int i=0; i<y; i++) {
      System.out.print(x);
    }
    System.out.println();
  }
}