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();
        char[] aArr = new char[b];
        Arrays.fill(aArr, (char)(a + '0'));
        char[] bArr = new char[a];
        Arrays.fill(bArr, (char)(b + '0'));
        if (a <= b) {
            System.out.println(aArr);
        } else {
            System.out.println(bArr);
        }
    }
} 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();
        char[] aArr = new char[b];
        Arrays.fill(aArr, (char)(a + '0'));
        char[] bArr = new char[a];
        Arrays.fill(bArr, (char)(b + '0'));
        if (a <= b) {
            System.out.println(aArr);
        } else {
            System.out.println(bArr);
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        char[] aArr = new char[b];
        Arrays.fill(aArr, (char)(a + '0'));
        char[] bArr = new char[a];
        Arrays.fill(bArr, (char)(b + '0'));
        if (a <= b) {
            System.out.println(aArr);
        } else {
            System.out.println(bArr);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        char[] aArr = new char[b];
        Arrays.fill(aArr, (char)(a + '0'));
        char[] bArr = new char[a];
        Arrays.fill(bArr, (char)(b + '0'));
        if (a <= b) {
            System.out.println(aArr);
        } else {
            System.out.println(bArr);
        }
    } 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 char[] aArr = new char[b]; aArr new char[b] b Arrays.fill(aArr, (char)(a + '0')) Arrays.fill Arrays aArr (char)(a + '0') a '0' char[] bArr = new char[a]; bArr new char[a] a Arrays.fill(bArr, (char)(b + '0')) Arrays.fill Arrays bArr (char)(b + '0') b '0' if (a <= b) {
            System.out.println(aArr);
        } else {
            System.out.println(bArr);
        } a <= b a b {
            System.out.println(aArr);
        } System.out.println(aArr) System.out.println System.out System System.out aArr {
            System.out.println(bArr);
        } System.out.println(bArr) System.out.println System.out System System.out bArr 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();
        char[] aArr = new char[b];
        Arrays.fill(aArr, (char)(a + '0'));
        char[] bArr = new char[a];
        Arrays.fill(bArr, (char)(b + '0'));
        if (a <= b) {
            System.out.println(aArr);
        } else {
            System.out.println(bArr);
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        char[] aArr = new char[b];
        Arrays.fill(aArr, (char)(a + '0'));
        char[] bArr = new char[a];
        Arrays.fill(bArr, (char)(b + '0'));
        if (a <= b) {
            System.out.println(aArr);
        } else {
            System.out.println(bArr);
        }
    }
} 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();
        char[] aArr = new char[b];
        Arrays.fill(aArr, (char)(a + '0'));
        char[] bArr = new char[a];
        Arrays.fill(bArr, (char)(b + '0'));
        if (a <= b) {
            System.out.println(aArr);
        } else {
            System.out.println(bArr);
        }
    }
}