import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int M = Integer.parseInt(sc.next());
        int X = Math.min(N,M);
        int count = Math.max(N,M);
        StringBuilder sb = new StringBuilder();
        for(int i=0;i<count;i++){
            sb.append(X);
        }
        System.out.println(sb);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int M = Integer.parseInt(sc.next());
        int X = Math.min(N,M);
        int count = Math.max(N,M);
        StringBuilder sb = new StringBuilder();
        for(int i=0;i<count;i++){
            sb.append(X);
        }
        System.out.println(sb);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int M = Integer.parseInt(sc.next());
        int X = Math.min(N,M);
        int count = Math.max(N,M);
        StringBuilder sb = new StringBuilder();
        for(int i=0;i<count;i++){
            sb.append(X);
        }
        System.out.println(sb);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int M = Integer.parseInt(sc.next());
        int X = Math.min(N,M);
        int count = Math.max(N,M);
        StringBuilder sb = new StringBuilder();
        for(int i=0;i<count;i++){
            sb.append(X);
        }
        System.out.println(sb);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int M = Integer.parseInt(sc.next()); M Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int X = Math.min(N,M); X Math.min(N,M) Math.min Math N M int count = Math.max(N,M); count Math.max(N,M) Math.max Math N M StringBuilder sb = new StringBuilder(); sb new StringBuilder() for(int i=0;i<count;i++){
            sb.append(X);
        } int i=0; int i=0; i 0 i<count i count i++ i++ i {
            sb.append(X);
        } {
            sb.append(X);
        } sb.append(X) sb.append sb X System.out.println(sb) System.out.println System.out System System.out sb String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int M = Integer.parseInt(sc.next());
        int X = Math.min(N,M);
        int count = Math.max(N,M);
        StringBuilder sb = new StringBuilder();
        for(int i=0;i<count;i++){
            sb.append(X);
        }
        System.out.println(sb);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int M = Integer.parseInt(sc.next());
        int X = Math.min(N,M);
        int count = Math.max(N,M);
        StringBuilder sb = new StringBuilder();
        for(int i=0;i<count;i++){
            sb.append(X);
        }
        System.out.println(sb);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int M = Integer.parseInt(sc.next());
        int X = Math.min(N,M);
        int count = Math.max(N,M);
        StringBuilder sb = new StringBuilder();
        for(int i=0;i<count;i++){
            sb.append(X);
        }
        System.out.println(sb);
    }
}
