import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc =  new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    if (a <= b){
      for(int i = 0; i < b; i++){
        System.out.print(a);
      }
    }
    else {
      for (int j = 0; j < a; j++){
        System.out.print(b);
      }
    }
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc =  new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    if (a <= b){
      for(int i = 0; i < b; i++){
        System.out.print(a);
      }
    }
    else {
      for (int j = 0; j < a; j++){
        System.out.print(b);
      }
    }
  }
} Main public static void main(String[] args){
    Scanner sc =  new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    if (a <= b){
      for(int i = 0; i < b; i++){
        System.out.print(a);
      }
    }
    else {
      for (int j = 0; j < a; j++){
        System.out.print(b);
      }
    }
  } main {
    Scanner sc =  new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    if (a <= b){
      for(int i = 0; i < b; i++){
        System.out.print(a);
      }
    }
    else {
      for (int j = 0; j < a; j++){
        System.out.print(b);
      }
    }
  } Scanner sc =  new Scanner(System.in); sc new Scanner(System.in) int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int b = Integer.parseInt(sc.next()); b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if (a <= b){
      for(int i = 0; i < b; i++){
        System.out.print(a);
      }
    }
    else {
      for (int j = 0; j < a; j++){
        System.out.print(b);
      }
    } a <= b a b {
      for(int i = 0; i < b; i++){
        System.out.print(a);
      }
    } 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 {
      for (int j = 0; j < a; j++){
        System.out.print(b);
      }
    } for (int j = 0; j < a; j++){
        System.out.print(b);
      } int j = 0; int j = 0; j 0 j < a j a j++ j++ j {
        System.out.print(b);
      } {
        System.out.print(b);
      } System.out.print(b) System.out.print System.out System System.out b String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc =  new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    if (a <= b){
      for(int i = 0; i < b; i++){
        System.out.print(a);
      }
    }
    else {
      for (int j = 0; j < a; j++){
        System.out.print(b);
      }
    }
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc =  new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    if (a <= b){
      for(int i = 0; i < b; i++){
        System.out.print(a);
      }
    }
    else {
      for (int j = 0; j < a; j++){
        System.out.print(b);
      }
    }
  }
} Main
import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc =  new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    if (a <= b){
      for(int i = 0; i < b; i++){
        System.out.print(a);
      }
    }
    else {
      for (int j = 0; j < a; j++){
        System.out.print(b);
      }
    }
  }
}
