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

public class Main {

    public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);
        long a;
        a = sc.nextLong();
        long b;
        b = sc.nextLong();

        final Solver solver = new Solver();
        solver.solve(a, b);
    }
}

class Solver {
    public void solve(long a, long b) {
        int small = (int) Math.min(a, b);
        int large = (int) Math.max(a, b);
        for (int i = 0; i < large; i++) {
            System.out.print(small);
        }
        System.out.println();
    }
}
 import java.io.*; io.* java import java.util.*; util.* java public class Main {

    public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);
        long a;
        a = sc.nextLong();
        long b;
        b = sc.nextLong();

        final Solver solver = new Solver();
        solver.solve(a, b);
    }
} Main public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);
        long a;
        a = sc.nextLong();
        long b;
        b = sc.nextLong();

        final Solver solver = new Solver();
        solver.solve(a, b);
    } main {
        final Scanner sc = new Scanner(System.in);
        long a;
        a = sc.nextLong();
        long b;
        b = sc.nextLong();

        final Solver solver = new Solver();
        solver.solve(a, b);
    } final Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long a; a a = sc.nextLong() a sc.nextLong() sc.nextLong sc long b; b b = sc.nextLong() b sc.nextLong() sc.nextLong sc final Solver solver = new Solver(); solver new Solver() solver.solve(a, b) solver.solve solver a b final String[] args args class Solver {
    public void solve(long a, long b) {
        int small = (int) Math.min(a, b);
        int large = (int) Math.max(a, b);
        for (int i = 0; i < large; i++) {
            System.out.print(small);
        }
        System.out.println();
    }
} Solver public void solve(long a, long b) {
        int small = (int) Math.min(a, b);
        int large = (int) Math.max(a, b);
        for (int i = 0; i < large; i++) {
            System.out.print(small);
        }
        System.out.println();
    } solve {
        int small = (int) Math.min(a, b);
        int large = (int) Math.max(a, b);
        for (int i = 0; i < large; i++) {
            System.out.print(small);
        }
        System.out.println();
    } int small = (int) Math.min(a, b); small (int) Math.min(a, b) Math.min Math a b int large = (int) Math.max(a, b); large (int) Math.max(a, b) Math.max Math a b for (int i = 0; i < large; i++) {
            System.out.print(small);
        } int i = 0; int i = 0; i 0 i < large i large i++ i++ i {
            System.out.print(small);
        } {
            System.out.print(small);
        } System.out.print(small) System.out.print System.out System System.out small System.out.println() System.out.println System.out System System.out long a a long b b public class Main {

    public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);
        long a;
        a = sc.nextLong();
        long b;
        b = sc.nextLong();

        final Solver solver = new Solver();
        solver.solve(a, b);
    }
} public class Main {

    public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);
        long a;
        a = sc.nextLong();
        long b;
        b = sc.nextLong();

        final Solver solver = new Solver();
        solver.solve(a, b);
    }
} Main
import java.io.*;
import java.util.*;

public class Main {

    public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);
        long a;
        a = sc.nextLong();
        long b;
        b = sc.nextLong();

        final Solver solver = new Solver();
        solver.solve(a, b);
    }
}

class Solver {
    public void solve(long a, long b) {
        int small = (int) Math.min(a, b);
        int large = (int) Math.max(a, b);
        for (int i = 0; i < large; i++) {
            System.out.print(small);
        }
        System.out.println();
    }
}

