import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        if (a == b) {
            while (b-- > 0) {
            System.out.print(a);
            }
            System.out.println();
            return;
        }
        
        if (a < b) {
            while (b-- > 0) {
            System.out.print(a);
            }
            System.out.println();
            return;
        } else {
            while (a-- > 0) {
            System.out.print(b);
            }
            System.out.println();
            return;
            
        }
        
        // String stra = "";
        // for (int i = 0; i < Integer.parseInt(b); i++) {
        //     stra += "" + a;
        // }
        // String strb = "";
        // for (int i = 0; i < Integer.parseInt(a); i++) {
        //     strb += "" + b;
        // }
        // if (stra < strb) {
        //     System.out.println(stra);
        // } else {
        //     System.out.println(strb);
        // }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        if (a == b) {
            while (b-- > 0) {
            System.out.print(a);
            }
            System.out.println();
            return;
        }
        
        if (a < b) {
            while (b-- > 0) {
            System.out.print(a);
            }
            System.out.println();
            return;
        } else {
            while (a-- > 0) {
            System.out.print(b);
            }
            System.out.println();
            return;
            
        }
        
        // String stra = "";
        // for (int i = 0; i < Integer.parseInt(b); i++) {
        //     stra += "" + a;
        // }
        // String strb = "";
        // for (int i = 0; i < Integer.parseInt(a); i++) {
        //     strb += "" + b;
        // }
        // if (stra < strb) {
        //     System.out.println(stra);
        // } else {
        //     System.out.println(strb);
        // }
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        if (a == b) {
            while (b-- > 0) {
            System.out.print(a);
            }
            System.out.println();
            return;
        }
        
        if (a < b) {
            while (b-- > 0) {
            System.out.print(a);
            }
            System.out.println();
            return;
        } else {
            while (a-- > 0) {
            System.out.print(b);
            }
            System.out.println();
            return;
            
        }
        
        // String stra = "";
        // for (int i = 0; i < Integer.parseInt(b); i++) {
        //     stra += "" + a;
        // }
        // String strb = "";
        // for (int i = 0; i < Integer.parseInt(a); i++) {
        //     strb += "" + b;
        // }
        // if (stra < strb) {
        //     System.out.println(stra);
        // } else {
        //     System.out.println(strb);
        // }
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        if (a == b) {
            while (b-- > 0) {
            System.out.print(a);
            }
            System.out.println();
            return;
        }
        
        if (a < b) {
            while (b-- > 0) {
            System.out.print(a);
            }
            System.out.println();
            return;
        } else {
            while (a-- > 0) {
            System.out.print(b);
            }
            System.out.println();
            return;
            
        }
        
        // String stra = "";
        // for (int i = 0; i < Integer.parseInt(b); i++) {
        //     stra += "" + a;
        // }
        // String strb = "";
        // for (int i = 0; i < Integer.parseInt(a); i++) {
        //     strb += "" + b;
        // }
        // if (stra < strb) {
        //     System.out.println(stra);
        // } else {
        //     System.out.println(strb);
        // }
    } 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 if (a == b) {
            while (b-- > 0) {
            System.out.print(a);
            }
            System.out.println();
            return;
        } a == b a b {
            while (b-- > 0) {
            System.out.print(a);
            }
            System.out.println();
            return;
        } while (b-- > 0) {
            System.out.print(a);
            } b-- > 0 b-- b 0 {
            System.out.print(a);
            } System.out.print(a) System.out.print System.out System System.out a System.out.println() System.out.println System.out System System.out return; if (a < b) {
            while (b-- > 0) {
            System.out.print(a);
            }
            System.out.println();
            return;
        } else {
            while (a-- > 0) {
            System.out.print(b);
            }
            System.out.println();
            return;
            
        } a < b a b {
            while (b-- > 0) {
            System.out.print(a);
            }
            System.out.println();
            return;
        } while (b-- > 0) {
            System.out.print(a);
            } b-- > 0 b-- b 0 {
            System.out.print(a);
            } System.out.print(a) System.out.print System.out System System.out a System.out.println() System.out.println System.out System System.out return; {
            while (a-- > 0) {
            System.out.print(b);
            }
            System.out.println();
            return;
            
        } while (a-- > 0) {
            System.out.print(b);
            } a-- > 0 a-- a 0 {
            System.out.print(b);
            } System.out.print(b) System.out.print System.out System System.out b System.out.println() System.out.println System.out System System.out return; String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        if (a == b) {
            while (b-- > 0) {
            System.out.print(a);
            }
            System.out.println();
            return;
        }
        
        if (a < b) {
            while (b-- > 0) {
            System.out.print(a);
            }
            System.out.println();
            return;
        } else {
            while (a-- > 0) {
            System.out.print(b);
            }
            System.out.println();
            return;
            
        }
        
        // String stra = "";
        // for (int i = 0; i < Integer.parseInt(b); i++) {
        //     stra += "" + a;
        // }
        // String strb = "";
        // for (int i = 0; i < Integer.parseInt(a); i++) {
        //     strb += "" + b;
        // }
        // if (stra < strb) {
        //     System.out.println(stra);
        // } else {
        //     System.out.println(strb);
        // }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        if (a == b) {
            while (b-- > 0) {
            System.out.print(a);
            }
            System.out.println();
            return;
        }
        
        if (a < b) {
            while (b-- > 0) {
            System.out.print(a);
            }
            System.out.println();
            return;
        } else {
            while (a-- > 0) {
            System.out.print(b);
            }
            System.out.println();
            return;
            
        }
        
        // String stra = "";
        // for (int i = 0; i < Integer.parseInt(b); i++) {
        //     stra += "" + a;
        // }
        // String strb = "";
        // for (int i = 0; i < Integer.parseInt(a); i++) {
        //     strb += "" + b;
        // }
        // if (stra < strb) {
        //     System.out.println(stra);
        // } else {
        //     System.out.println(strb);
        // }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        if (a == b) {
            while (b-- > 0) {
            System.out.print(a);
            }
            System.out.println();
            return;
        }
        
        if (a < b) {
            while (b-- > 0) {
            System.out.print(a);
            }
            System.out.println();
            return;
        } else {
            while (a-- > 0) {
            System.out.print(b);
            }
            System.out.println();
            return;
            
        }
        
        // String stra = "";
        // for (int i = 0; i < Integer.parseInt(b); i++) {
        //     stra += "" + a;
        // }
        // String strb = "";
        // for (int i = 0; i < Integer.parseInt(a); i++) {
        //     strb += "" + b;
        // }
        // if (stra < strb) {
        //     System.out.println(stra);
        // } else {
        //     System.out.println(strb);
        // }
    }
}
