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());
        sc.close();

        if(a > b){
            int t = b;
            b = a;
            a = t;
        }
        for(int i = 0; i < b; i++){
            System.out.print(a);
        }
        System.out.println();
    }
} 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());
        sc.close();

        if(a > b){
            int t = b;
            b = a;
            a = t;
        }
        for(int i = 0; i < b; i++){
            System.out.print(a);
        }
        System.out.println();
    }
} 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());
        sc.close();

        if(a > b){
            int t = b;
            b = a;
            a = t;
        }
        for(int i = 0; i < b; i++){
            System.out.print(a);
        }
        System.out.println();
    } main {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());
        sc.close();

        if(a > b){
            int t = b;
            b = a;
            a = t;
        }
        for(int i = 0; i < b; i++){
            System.out.print(a);
        }
        System.out.println();
    } 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 sc.close() sc.close sc if(a > b){
            int t = b;
            b = a;
            a = t;
        } a > b a b {
            int t = b;
            b = a;
            a = t;
        } int t = b; t b b = a b a a = t a t 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 System.out.println() System.out.println System.out System System.out 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());
        sc.close();

        if(a > b){
            int t = b;
            b = a;
            a = t;
        }
        for(int i = 0; i < b; i++){
            System.out.print(a);
        }
        System.out.println();
    }
} 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());
        sc.close();

        if(a > b){
            int t = b;
            b = a;
            a = t;
        }
        for(int i = 0; i < b; i++){
            System.out.print(a);
        }
        System.out.println();
    }
} 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());
        sc.close();

        if(a > b){
            int t = b;
            b = a;
            a = t;
        }
        for(int i = 0; i < b; i++){
            System.out.print(a);
        }
        System.out.println();
    }
}