import java.util.*;

public class Main{
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();

        int A = 0;
        int base = 1;
        for(int i=0; i<b; i++){
            A = A + base * a;
            base = base * 10;
        }
        int B = 0;
        base = 1;
        for(int i=0; i<a; i++){
            B = B + base * b;
            base = base * 10;
        }
        String AS = String.valueOf(A);
        String BS = String.valueOf(B);
        if(AS.compareTo(BS) <0){
            System.out.println(AS);
        }else{
            System.out.println(BS);
        }
    }
} import java.util.*; util.* java public class Main{
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();

        int A = 0;
        int base = 1;
        for(int i=0; i<b; i++){
            A = A + base * a;
            base = base * 10;
        }
        int B = 0;
        base = 1;
        for(int i=0; i<a; i++){
            B = B + base * b;
            base = base * 10;
        }
        String AS = String.valueOf(A);
        String BS = String.valueOf(B);
        if(AS.compareTo(BS) <0){
            System.out.println(AS);
        }else{
            System.out.println(BS);
        }
    }
} Main public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();

        int A = 0;
        int base = 1;
        for(int i=0; i<b; i++){
            A = A + base * a;
            base = base * 10;
        }
        int B = 0;
        base = 1;
        for(int i=0; i<a; i++){
            B = B + base * b;
            base = base * 10;
        }
        String AS = String.valueOf(A);
        String BS = String.valueOf(B);
        if(AS.compareTo(BS) <0){
            System.out.println(AS);
        }else{
            System.out.println(BS);
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();

        int A = 0;
        int base = 1;
        for(int i=0; i<b; i++){
            A = A + base * a;
            base = base * 10;
        }
        int B = 0;
        base = 1;
        for(int i=0; i<a; i++){
            B = B + base * b;
            base = base * 10;
        }
        String AS = String.valueOf(A);
        String BS = String.valueOf(B);
        if(AS.compareTo(BS) <0){
            System.out.println(AS);
        }else{
            System.out.println(BS);
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner int A = 0; A 0 int base = 1; base 1 for(int i=0; i<b; i++){
            A = A + base * a;
            base = base * 10;
        } int i=0; int i=0; i 0 i<b i b i++ i++ i {
            A = A + base * a;
            base = base * 10;
        } {
            A = A + base * a;
            base = base * 10;
        } A = A + base * a A A + base * a A base * a base a base = base * 10 base base * 10 base 10 int B = 0; B 0 base = 1 base 1 for(int i=0; i<a; i++){
            B = B + base * b;
            base = base * 10;
        } int i=0; int i=0; i 0 i<a i a i++ i++ i {
            B = B + base * b;
            base = base * 10;
        } {
            B = B + base * b;
            base = base * 10;
        } B = B + base * b B B + base * b B base * b base b base = base * 10 base base * 10 base 10 String AS = String.valueOf(A); AS String.valueOf(A) String.valueOf String A String BS = String.valueOf(B); BS String.valueOf(B) String.valueOf String B if(AS.compareTo(BS) <0){
            System.out.println(AS);
        }else{
            System.out.println(BS);
        } AS.compareTo(BS) <0 AS.compareTo(BS) AS.compareTo AS BS 0 {
            System.out.println(AS);
        } System.out.println(AS) System.out.println System.out System System.out AS {
            System.out.println(BS);
        } System.out.println(BS) System.out.println System.out System System.out BS String args[] args public class Main{
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();

        int A = 0;
        int base = 1;
        for(int i=0; i<b; i++){
            A = A + base * a;
            base = base * 10;
        }
        int B = 0;
        base = 1;
        for(int i=0; i<a; i++){
            B = B + base * b;
            base = base * 10;
        }
        String AS = String.valueOf(A);
        String BS = String.valueOf(B);
        if(AS.compareTo(BS) <0){
            System.out.println(AS);
        }else{
            System.out.println(BS);
        }
    }
} public class Main{
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();

        int A = 0;
        int base = 1;
        for(int i=0; i<b; i++){
            A = A + base * a;
            base = base * 10;
        }
        int B = 0;
        base = 1;
        for(int i=0; i<a; i++){
            B = B + base * b;
            base = base * 10;
        }
        String AS = String.valueOf(A);
        String BS = String.valueOf(B);
        if(AS.compareTo(BS) <0){
            System.out.println(AS);
        }else{
            System.out.println(BS);
        }
    }
} Main
import java.util.*;

public class Main{
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();

        int A = 0;
        int base = 1;
        for(int i=0; i<b; i++){
            A = A + base * a;
            base = base * 10;
        }
        int B = 0;
        base = 1;
        for(int i=0; i<a; i++){
            B = B + base * b;
            base = base * 10;
        }
        String AS = String.valueOf(A);
        String BS = String.valueOf(B);
        if(AS.compareTo(BS) <0){
            System.out.println(AS);
        }else{
            System.out.println(BS);
        }
    }
}