import static java.lang.System.out;
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int m = (a>=b?a:b);
        int n = (a==m?b:a);
        for(int i=0;i<m;i++){
            out.print(n);
        }
        out.println();
        scan.close();
    } 
} import static java.lang.System.out; import static java.lang.System.out; import static java.lang.System.out; import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int m = (a>=b?a:b);
        int n = (a==m?b:a);
        for(int i=0;i<m;i++){
            out.print(n);
        }
        out.println();
        scan.close();
    } 
} Main public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int m = (a>=b?a:b);
        int n = (a==m?b:a);
        for(int i=0;i<m;i++){
            out.print(n);
        }
        out.println();
        scan.close();
    } main {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int m = (a>=b?a:b);
        int n = (a==m?b:a);
        for(int i=0;i<m;i++){
            out.print(n);
        }
        out.println();
        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int m = (a>=b?a:b); m (a>=b?a:b) a>=b a b a b int n = (a==m?b:a); n (a==m?b:a) a==m a m b a for(int i=0;i<m;i++){
            out.print(n);
        } int i=0; int i=0; i 0 i<m i m i++ i++ i {
            out.print(n);
        } {
            out.print(n);
        } out.print(n) out.print out n out.println() out.println out scan.close() scan.close scan String[] args args public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int m = (a>=b?a:b);
        int n = (a==m?b:a);
        for(int i=0;i<m;i++){
            out.print(n);
        }
        out.println();
        scan.close();
    } 
} public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int m = (a>=b?a:b);
        int n = (a==m?b:a);
        for(int i=0;i<m;i++){
            out.print(n);
        }
        out.println();
        scan.close();
    } 
} Main
import static java.lang.System.out;
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int m = (a>=b?a:b);
        int n = (a==m?b:a);
        for(int i=0;i<m;i++){
            out.print(n);
        }
        out.println();
        scan.close();
    } 
}