import java.io.*;
import java.util.*;

/**
 * Created by Ayushi on 19 Jan 2020.
 * Problem:
 * Round:
 */

public class Main {
    public static void main(String[] args) throws IOException {
        StringTokenizer st;
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String temp = br.readLine();
        st = new StringTokenizer(temp, " ");
        int a = Integer.parseInt(st.nextToken());
        int b = Integer.parseInt(st.nextToken());
        br.close();

        if (a < b) for (int i = 0; i < b; i++) System.out.print(a);
        else for (int j = 0; j < a; j++) System.out.print(b);
    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws IOException {
        StringTokenizer st;
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String temp = br.readLine();
        st = new StringTokenizer(temp, " ");
        int a = Integer.parseInt(st.nextToken());
        int b = Integer.parseInt(st.nextToken());
        br.close();

        if (a < b) for (int i = 0; i < b; i++) System.out.print(a);
        else for (int j = 0; j < a; j++) System.out.print(b);
    }
} Main public static void main(String[] args) throws IOException {
        StringTokenizer st;
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String temp = br.readLine();
        st = new StringTokenizer(temp, " ");
        int a = Integer.parseInt(st.nextToken());
        int b = Integer.parseInt(st.nextToken());
        br.close();

        if (a < b) for (int i = 0; i < b; i++) System.out.print(a);
        else for (int j = 0; j < a; j++) System.out.print(b);
    } main {
        StringTokenizer st;
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String temp = br.readLine();
        st = new StringTokenizer(temp, " ");
        int a = Integer.parseInt(st.nextToken());
        int b = Integer.parseInt(st.nextToken());
        br.close();

        if (a < b) for (int i = 0; i < b; i++) System.out.print(a);
        else for (int j = 0; j < a; j++) System.out.print(b);
    } StringTokenizer st; st BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String temp = br.readLine(); temp br.readLine() br.readLine br st = new StringTokenizer(temp, " ") st new StringTokenizer(temp, " ") int a = Integer.parseInt(st.nextToken()); a Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st int b = Integer.parseInt(st.nextToken()); b Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st br.close() br.close br if (a < b) for (int i = 0; i < b; i++) System.out.print(a);
        else for (int j = 0; j < a; j++) System.out.print(b); a < b a b for (int i = 0; i < b; i++) System.out.print(a); int i = 0; int i = 0; i 0 i < b i b i++ i++ i System.out.print(a); System.out.print(a) System.out.print System.out System System.out a for (int j = 0; j < a; j++) System.out.print(b); int j = 0; int j = 0; j 0 j < a j a j++ j++ j System.out.print(b); System.out.print(b) System.out.print System.out System System.out b String[] args args public class Main {
    public static void main(String[] args) throws IOException {
        StringTokenizer st;
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String temp = br.readLine();
        st = new StringTokenizer(temp, " ");
        int a = Integer.parseInt(st.nextToken());
        int b = Integer.parseInt(st.nextToken());
        br.close();

        if (a < b) for (int i = 0; i < b; i++) System.out.print(a);
        else for (int j = 0; j < a; j++) System.out.print(b);
    }
} public class Main {
    public static void main(String[] args) throws IOException {
        StringTokenizer st;
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String temp = br.readLine();
        st = new StringTokenizer(temp, " ");
        int a = Integer.parseInt(st.nextToken());
        int b = Integer.parseInt(st.nextToken());
        br.close();

        if (a < b) for (int i = 0; i < b; i++) System.out.print(a);
        else for (int j = 0; j < a; j++) System.out.print(b);
    }
} Main
import java.io.*;
import java.util.*;

/**
 * Created by Ayushi on 19 Jan 2020.
 * Problem:
 * Round:
 */

public class Main {
    public static void main(String[] args) throws IOException {
        StringTokenizer st;
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String temp = br.readLine();
        st = new StringTokenizer(temp, " ");
        int a = Integer.parseInt(st.nextToken());
        int b = Integer.parseInt(st.nextToken());
        br.close();

        if (a < b) for (int i = 0; i < b; i++) System.out.print(a);
        else for (int j = 0; j < a; j++) System.out.print(b);
    }
}
