import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int m=sc.nextInt();
      if(n<m){
        int po=n;
        n=m;
        m=po;
      }
      for(int i=0;i<n;i++)System.out.print(m);
    }
} 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 n=sc.nextInt();
        int m=sc.nextInt();
      if(n<m){
        int po=n;
        n=m;
        m=po;
      }
      for(int i=0;i<n;i++)System.out.print(m);
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int m=sc.nextInt();
      if(n<m){
        int po=n;
        n=m;
        m=po;
      }
      for(int i=0;i<n;i++)System.out.print(m);
    } main {
        // Your code here!
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int m=sc.nextInt();
      if(n<m){
        int po=n;
        n=m;
        m=po;
      }
      for(int i=0;i<n;i++)System.out.print(m);
    } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int m=sc.nextInt(); m sc.nextInt() sc.nextInt sc if(n<m){
        int po=n;
        n=m;
        m=po;
      } n<m n m {
        int po=n;
        n=m;
        m=po;
      } int po=n; po n n=m n m m=po m po for(int i=0;i<n;i++)System.out.print(m); int i=0; int i=0; i 0 i<n i n i++ i++ i System.out.print(m); System.out.print(m) System.out.print System.out System System.out m String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int m=sc.nextInt();
      if(n<m){
        int po=n;
        n=m;
        m=po;
      }
      for(int i=0;i<n;i++)System.out.print(m);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int m=sc.nextInt();
      if(n<m){
        int po=n;
        n=m;
        m=po;
      }
      for(int i=0;i<n;i++)System.out.print(m);
    }
} 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 n=sc.nextInt();
        int m=sc.nextInt();
      if(n<m){
        int po=n;
        n=m;
        m=po;
      }
      for(int i=0;i<n;i++)System.out.print(m);
    }
}
