import java.util.*;
import java.io.*;
class Main {
  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String input = br.readLine();
    String[] split = input.split(" ");
    int a = Integer.parseInt(split[0]);
     int b = Integer.parseInt(split[1]);
    int x = 0;
    int y =0;
    if(a==b) {
      x=a;
      y=b;
    }
    else if(a>b) {
       x=a;
      y=b;
    } else {
      x=b;
      y=a;
    }
    int number =0;
    for(int i=1;i<=x;i++){
      number = number*10 + y;
    }
    System.out.println(number);
    
  }
} import java.util.*; util.* java import java.io.*; io.* java class Main {
  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String input = br.readLine();
    String[] split = input.split(" ");
    int a = Integer.parseInt(split[0]);
     int b = Integer.parseInt(split[1]);
    int x = 0;
    int y =0;
    if(a==b) {
      x=a;
      y=b;
    }
    else if(a>b) {
       x=a;
      y=b;
    } else {
      x=b;
      y=a;
    }
    int number =0;
    for(int i=1;i<=x;i++){
      number = number*10 + y;
    }
    System.out.println(number);
    
  }
} Main public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String input = br.readLine();
    String[] split = input.split(" ");
    int a = Integer.parseInt(split[0]);
     int b = Integer.parseInt(split[1]);
    int x = 0;
    int y =0;
    if(a==b) {
      x=a;
      y=b;
    }
    else if(a>b) {
       x=a;
      y=b;
    } else {
      x=b;
      y=a;
    }
    int number =0;
    for(int i=1;i<=x;i++){
      number = number*10 + y;
    }
    System.out.println(number);
    
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String input = br.readLine();
    String[] split = input.split(" ");
    int a = Integer.parseInt(split[0]);
     int b = Integer.parseInt(split[1]);
    int x = 0;
    int y =0;
    if(a==b) {
      x=a;
      y=b;
    }
    else if(a>b) {
       x=a;
      y=b;
    } else {
      x=b;
      y=a;
    }
    int number =0;
    for(int i=1;i<=x;i++){
      number = number*10 + y;
    }
    System.out.println(number);
    
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String input = br.readLine(); input br.readLine() br.readLine br String[] split = input.split(" "); split input.split(" ") input.split input " " int a = Integer.parseInt(split[0]); a Integer.parseInt(split[0]) Integer.parseInt Integer split[0] split 0 int b = Integer.parseInt(split[1]); b Integer.parseInt(split[1]) Integer.parseInt Integer split[1] split 1 int x = 0; x 0 int y =0; y 0 if(a==b) {
      x=a;
      y=b;
    }
    else if(a>b) {
       x=a;
      y=b;
    } else {
      x=b;
      y=a;
    } a==b a b {
      x=a;
      y=b;
    } x=a x a y=b y b if(a>b) {
       x=a;
      y=b;
    } else {
      x=b;
      y=a;
    } a>b a b {
       x=a;
      y=b;
    } x=a x a y=b y b {
      x=b;
      y=a;
    } x=b x b y=a y a int number =0; number 0 for(int i=1;i<=x;i++){
      number = number*10 + y;
    } int i=1; int i=1; i 1 i<=x i x i++ i++ i {
      number = number*10 + y;
    } {
      number = number*10 + y;
    } number = number*10 + y number number*10 + y number*10 number 10 y System.out.println(number) System.out.println System.out System System.out number String[] args args
import java.util.*;
import java.io.*;
class Main {
  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String input = br.readLine();
    String[] split = input.split(" ");
    int a = Integer.parseInt(split[0]);
     int b = Integer.parseInt(split[1]);
    int x = 0;
    int y =0;
    if(a==b) {
      x=a;
      y=b;
    }
    else if(a>b) {
       x=a;
      y=b;
    } else {
      x=b;
      y=a;
    }
    int number =0;
    for(int i=1;i<=x;i++){
      number = number*10 + y;
    }
    System.out.println(number);
    
  }
}