import java.util.Scanner;

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

        if(n > m) for(int i = 0; i < n;i++) System.out.print(Integer.toString(m));
        else for(int i = 0; i < m;i++) System.out.print(Integer.toString(n));
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int m = scan.nextInt();
        scan.close();

        if(n > m) for(int i = 0; i < n;i++) System.out.print(Integer.toString(m));
        else for(int i = 0; i < m;i++) System.out.print(Integer.toString(n));
    }
} Main public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int m = scan.nextInt();
        scan.close();

        if(n > m) for(int i = 0; i < n;i++) System.out.print(Integer.toString(m));
        else for(int i = 0; i < m;i++) System.out.print(Integer.toString(n));
    } main {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int m = scan.nextInt();
        scan.close();

        if(n > m) for(int i = 0; i < n;i++) System.out.print(Integer.toString(m));
        else for(int i = 0; i < m;i++) System.out.print(Integer.toString(n));
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int m = scan.nextInt(); m scan.nextInt() scan.nextInt scan scan.close() scan.close scan if(n > m) for(int i = 0; i < n;i++) System.out.print(Integer.toString(m));
        else for(int i = 0; i < m;i++) System.out.print(Integer.toString(n)); n > m n m for(int i = 0; i < n;i++) System.out.print(Integer.toString(m)); int i = 0; int i = 0; i 0 i < n i n i++ i++ i System.out.print(Integer.toString(m)); System.out.print(Integer.toString(m)) System.out.print System.out System System.out Integer.toString(m) Integer.toString Integer m for(int i = 0; i < m;i++) System.out.print(Integer.toString(n)); int i = 0; int i = 0; i 0 i < m i m i++ i++ i System.out.print(Integer.toString(n)); System.out.print(Integer.toString(n)) System.out.print System.out System System.out Integer.toString(n) Integer.toString Integer n String[] args args
import java.util.Scanner;

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

        if(n > m) for(int i = 0; i < n;i++) System.out.print(Integer.toString(m));
        else for(int i = 0; i < m;i++) System.out.print(Integer.toString(n));
    }
}