import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st;
        PrintWriter pw = new PrintWriter(System.out);

        st = new StringTokenizer(br.readLine());
        int n = Integer.parseInt(st.nextToken());
        int m = Integer.parseInt(st.nextToken());
        if(n==m) for(int i=0 ; i<n ; i++)pw.print(n);
        else if(n < m) for(int i=0 ; i<m ; i++) pw.print(n);
        else for(int i=0 ; i<n ; i++) pw.print(m);


        pw.flush();
        pw.close();
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.PrintWriter; PrintWriter java.io import java.util.StringTokenizer; StringTokenizer java.util public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st;
        PrintWriter pw = new PrintWriter(System.out);

        st = new StringTokenizer(br.readLine());
        int n = Integer.parseInt(st.nextToken());
        int m = Integer.parseInt(st.nextToken());
        if(n==m) for(int i=0 ; i<n ; i++)pw.print(n);
        else if(n < m) for(int i=0 ; i<m ; i++) pw.print(n);
        else for(int i=0 ; i<n ; i++) pw.print(m);


        pw.flush();
        pw.close();
    }
} Main public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st;
        PrintWriter pw = new PrintWriter(System.out);

        st = new StringTokenizer(br.readLine());
        int n = Integer.parseInt(st.nextToken());
        int m = Integer.parseInt(st.nextToken());
        if(n==m) for(int i=0 ; i<n ; i++)pw.print(n);
        else if(n < m) for(int i=0 ; i<m ; i++) pw.print(n);
        else for(int i=0 ; i<n ; i++) pw.print(m);


        pw.flush();
        pw.close();
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st;
        PrintWriter pw = new PrintWriter(System.out);

        st = new StringTokenizer(br.readLine());
        int n = Integer.parseInt(st.nextToken());
        int m = Integer.parseInt(st.nextToken());
        if(n==m) for(int i=0 ; i<n ; i++)pw.print(n);
        else if(n < m) for(int i=0 ; i<m ; i++) pw.print(n);
        else for(int i=0 ; i<n ; i++) pw.print(m);


        pw.flush();
        pw.close();
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringTokenizer st; st PrintWriter pw = new PrintWriter(System.out); pw new PrintWriter(System.out) st = new StringTokenizer(br.readLine()) st new StringTokenizer(br.readLine()) int n = Integer.parseInt(st.nextToken()); n Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st int m = Integer.parseInt(st.nextToken()); m Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st if(n==m) for(int i=0 ; i<n ; i++)pw.print(n);
        else if(n < m) for(int i=0 ; i<m ; i++) pw.print(n);
        else for(int i=0 ; i<n ; i++) pw.print(m); n==m n m for(int i=0 ; i<n ; i++)pw.print(n); int i=0 ; int i=0 ; i 0 i<n i n i++ i++ i pw.print(n); pw.print(n) pw.print pw n if(n < m) for(int i=0 ; i<m ; i++) pw.print(n);
        else for(int i=0 ; i<n ; i++) pw.print(m); n < m n m for(int i=0 ; i<m ; i++) pw.print(n); int i=0 ; int i=0 ; i 0 i<m i m i++ i++ i pw.print(n); pw.print(n) pw.print pw n for(int i=0 ; i<n ; i++) pw.print(m); int i=0 ; int i=0 ; i 0 i<n i n i++ i++ i pw.print(m); pw.print(m) pw.print pw m pw.flush() pw.flush pw pw.close() pw.close pw String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st;
        PrintWriter pw = new PrintWriter(System.out);

        st = new StringTokenizer(br.readLine());
        int n = Integer.parseInt(st.nextToken());
        int m = Integer.parseInt(st.nextToken());
        if(n==m) for(int i=0 ; i<n ; i++)pw.print(n);
        else if(n < m) for(int i=0 ; i<m ; i++) pw.print(n);
        else for(int i=0 ; i<n ; i++) pw.print(m);


        pw.flush();
        pw.close();
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st;
        PrintWriter pw = new PrintWriter(System.out);

        st = new StringTokenizer(br.readLine());
        int n = Integer.parseInt(st.nextToken());
        int m = Integer.parseInt(st.nextToken());
        if(n==m) for(int i=0 ; i<n ; i++)pw.print(n);
        else if(n < m) for(int i=0 ; i<m ; i++) pw.print(n);
        else for(int i=0 ; i<n ; i++) pw.print(m);


        pw.flush();
        pw.close();
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st;
        PrintWriter pw = new PrintWriter(System.out);

        st = new StringTokenizer(br.readLine());
        int n = Integer.parseInt(st.nextToken());
        int m = Integer.parseInt(st.nextToken());
        if(n==m) for(int i=0 ; i<n ; i++)pw.print(n);
        else if(n < m) for(int i=0 ; i<m ; i++) pw.print(n);
        else for(int i=0 ; i<n ; i++) pw.print(m);


        pw.flush();
        pw.close();
    }
}
