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 A = 0;
    int B = 0;
    for(int i= 1; i <= b ; i++ ){
        int v = (int)Math.pow(10,i-1);
        A += v*a;
    }
    for(int i= 1; i <= a ; i++ ){
        int z = (int)Math.pow(10,i-1);
        B += z*b;
    }
    if(A>=B){
        System.out.println(A);
    }else{
        System.out.println(B);
    }

        sc.close();
    }    
} 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 A = 0;
    int B = 0;
    for(int i= 1; i <= b ; i++ ){
        int v = (int)Math.pow(10,i-1);
        A += v*a;
    }
    for(int i= 1; i <= a ; i++ ){
        int z = (int)Math.pow(10,i-1);
        B += z*b;
    }
    if(A>=B){
        System.out.println(A);
    }else{
        System.out.println(B);
    }

        sc.close();
    }    
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int A = 0;
    int B = 0;
    for(int i= 1; i <= b ; i++ ){
        int v = (int)Math.pow(10,i-1);
        A += v*a;
    }
    for(int i= 1; i <= a ; i++ ){
        int z = (int)Math.pow(10,i-1);
        B += z*b;
    }
    if(A>=B){
        System.out.println(A);
    }else{
        System.out.println(B);
    }

        sc.close();
    } main {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int A = 0;
    int B = 0;
    for(int i= 1; i <= b ; i++ ){
        int v = (int)Math.pow(10,i-1);
        A += v*a;
    }
    for(int i= 1; i <= a ; i++ ){
        int z = (int)Math.pow(10,i-1);
        B += z*b;
    }
    if(A>=B){
        System.out.println(A);
    }else{
        System.out.println(B);
    }

        sc.close();
    } 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 A = 0; A 0 int B = 0; B 0 for(int i= 1; i <= b ; i++ ){
        int v = (int)Math.pow(10,i-1);
        A += v*a;
    } int i= 1; int i= 1; i 1 i <= b i b i++ i++ i {
        int v = (int)Math.pow(10,i-1);
        A += v*a;
    } {
        int v = (int)Math.pow(10,i-1);
        A += v*a;
    } int v = (int)Math.pow(10,i-1); v (int)Math.pow(10,i-1) Math.pow Math 10 i-1 i 1 A += v*a A v*a v a for(int i= 1; i <= a ; i++ ){
        int z = (int)Math.pow(10,i-1);
        B += z*b;
    } int i= 1; int i= 1; i 1 i <= a i a i++ i++ i {
        int z = (int)Math.pow(10,i-1);
        B += z*b;
    } {
        int z = (int)Math.pow(10,i-1);
        B += z*b;
    } int z = (int)Math.pow(10,i-1); z (int)Math.pow(10,i-1) Math.pow Math 10 i-1 i 1 B += z*b B z*b z b if(A>=B){
        System.out.println(A);
    }else{
        System.out.println(B);
    } A>=B A B {
        System.out.println(A);
    } System.out.println(A) System.out.println System.out System System.out A {
        System.out.println(B);
    } System.out.println(B) System.out.println System.out System System.out B sc.close() sc.close sc 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 A = 0;
    int B = 0;
    for(int i= 1; i <= b ; i++ ){
        int v = (int)Math.pow(10,i-1);
        A += v*a;
    }
    for(int i= 1; i <= a ; i++ ){
        int z = (int)Math.pow(10,i-1);
        B += z*b;
    }
    if(A>=B){
        System.out.println(A);
    }else{
        System.out.println(B);
    }

        sc.close();
    }    
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int A = 0;
    int B = 0;
    for(int i= 1; i <= b ; i++ ){
        int v = (int)Math.pow(10,i-1);
        A += v*a;
    }
    for(int i= 1; i <= a ; i++ ){
        int z = (int)Math.pow(10,i-1);
        B += z*b;
    }
    if(A>=B){
        System.out.println(A);
    }else{
        System.out.println(B);
    }

        sc.close();
    }    
} 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 A = 0;
    int B = 0;
    for(int i= 1; i <= b ; i++ ){
        int v = (int)Math.pow(10,i-1);
        A += v*a;
    }
    for(int i= 1; i <= a ; i++ ){
        int z = (int)Math.pow(10,i-1);
        B += z*b;
    }
    if(A>=B){
        System.out.println(A);
    }else{
        System.out.println(B);
    }

        sc.close();
    }    
}
