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

class Main{
    public static void main(String args[])throws IOException{
      try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
        String[] input = br.readLine().split(" ");

        int a = Integer.parseInt(input[0]);
        int b = Integer.parseInt(input[1]);

        StringBuilder str_a = new StringBuilder();
        StringBuilder str_b = new StringBuilder();

        for(int i = 0; i < b; i++){
          str_a.append(input[0]);
        }

        for(int i = 0; i < a; i++){
            str_b.append(input[1]);
        }

        if(a == b){
          System.out.println(str_a);
        }else if(a > b){
          System.out.println(str_b);
        }else if(a < b){
          System.out.println(str_a);
        }
      }
    }
} import java.io.*; io.* java import java.util.*; util.* java class Main{
    public static void main(String args[])throws IOException{
      try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
        String[] input = br.readLine().split(" ");

        int a = Integer.parseInt(input[0]);
        int b = Integer.parseInt(input[1]);

        StringBuilder str_a = new StringBuilder();
        StringBuilder str_b = new StringBuilder();

        for(int i = 0; i < b; i++){
          str_a.append(input[0]);
        }

        for(int i = 0; i < a; i++){
            str_b.append(input[1]);
        }

        if(a == b){
          System.out.println(str_a);
        }else if(a > b){
          System.out.println(str_b);
        }else if(a < b){
          System.out.println(str_a);
        }
      }
    }
} Main public static void main(String args[])throws IOException{
      try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
        String[] input = br.readLine().split(" ");

        int a = Integer.parseInt(input[0]);
        int b = Integer.parseInt(input[1]);

        StringBuilder str_a = new StringBuilder();
        StringBuilder str_b = new StringBuilder();

        for(int i = 0; i < b; i++){
          str_a.append(input[0]);
        }

        for(int i = 0; i < a; i++){
            str_b.append(input[1]);
        }

        if(a == b){
          System.out.println(str_a);
        }else if(a > b){
          System.out.println(str_b);
        }else if(a < b){
          System.out.println(str_a);
        }
      }
    } main {
      try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
        String[] input = br.readLine().split(" ");

        int a = Integer.parseInt(input[0]);
        int b = Integer.parseInt(input[1]);

        StringBuilder str_a = new StringBuilder();
        StringBuilder str_b = new StringBuilder();

        for(int i = 0; i < b; i++){
          str_a.append(input[0]);
        }

        for(int i = 0; i < a; i++){
            str_b.append(input[1]);
        }

        if(a == b){
          System.out.println(str_a);
        }else if(a > b){
          System.out.println(str_b);
        }else if(a < b){
          System.out.println(str_a);
        }
      }
    } try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
        String[] input = br.readLine().split(" ");

        int a = Integer.parseInt(input[0]);
        int b = Integer.parseInt(input[1]);

        StringBuilder str_a = new StringBuilder();
        StringBuilder str_b = new StringBuilder();

        for(int i = 0; i < b; i++){
          str_a.append(input[0]);
        }

        for(int i = 0; i < a; i++){
            str_b.append(input[1]);
        }

        if(a == b){
          System.out.println(str_a);
        }else if(a > b){
          System.out.println(str_b);
        }else if(a < b){
          System.out.println(str_a);
        }
      } {
        String[] input = br.readLine().split(" ");

        int a = Integer.parseInt(input[0]);
        int b = Integer.parseInt(input[1]);

        StringBuilder str_a = new StringBuilder();
        StringBuilder str_b = new StringBuilder();

        for(int i = 0; i < b; i++){
          str_a.append(input[0]);
        }

        for(int i = 0; i < a; i++){
            str_b.append(input[1]);
        }

        if(a == b){
          System.out.println(str_a);
        }else if(a > b){
          System.out.println(str_b);
        }else if(a < b){
          System.out.println(str_a);
        }
      } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) new BufferedReader(new InputStreamReader(System.in)) String[] input = br.readLine().split(" "); input br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a = Integer.parseInt(input[0]); a Integer.parseInt(input[0]) Integer.parseInt Integer input[0] input 0 int b = Integer.parseInt(input[1]); b Integer.parseInt(input[1]) Integer.parseInt Integer input[1] input 1 StringBuilder str_a = new StringBuilder(); str_a new StringBuilder() StringBuilder str_b = new StringBuilder(); str_b new StringBuilder() for(int i = 0; i < b; i++){
          str_a.append(input[0]);
        } int i = 0; int i = 0; i 0 i < b i b i++ i++ i {
          str_a.append(input[0]);
        } {
          str_a.append(input[0]);
        } str_a.append(input[0]) str_a.append str_a input[0] input 0 for(int i = 0; i < a; i++){
            str_b.append(input[1]);
        } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
            str_b.append(input[1]);
        } {
            str_b.append(input[1]);
        } str_b.append(input[1]) str_b.append str_b input[1] input 1 if(a == b){
          System.out.println(str_a);
        }else if(a > b){
          System.out.println(str_b);
        }else if(a < b){
          System.out.println(str_a);
        } a == b a b {
          System.out.println(str_a);
        } System.out.println(str_a) System.out.println System.out System System.out str_a if(a > b){
          System.out.println(str_b);
        }else if(a < b){
          System.out.println(str_a);
        } a > b a b {
          System.out.println(str_b);
        } System.out.println(str_b) System.out.println System.out System System.out str_b if(a < b){
          System.out.println(str_a);
        } a < b a b {
          System.out.println(str_a);
        } System.out.println(str_a) System.out.println System.out System System.out str_a String args[] args
import java.io.*;
import java.util.*;

class Main{
    public static void main(String args[])throws IOException{
      try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
        String[] input = br.readLine().split(" ");

        int a = Integer.parseInt(input[0]);
        int b = Integer.parseInt(input[1]);

        StringBuilder str_a = new StringBuilder();
        StringBuilder str_b = new StringBuilder();

        for(int i = 0; i < b; i++){
          str_a.append(input[0]);
        }

        for(int i = 0; i < a; i++){
            str_b.append(input[1]);
        }

        if(a == b){
          System.out.println(str_a);
        }else if(a > b){
          System.out.println(str_b);
        }else if(a < b){
          System.out.println(str_a);
        }
      }
    }
}