import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner I = new Scanner(System.in);
    int a =I.nextInt();
    int b =I.nextInt();
    int c=1; int d=1;
    if(a>=b){
      for(int i=0;i<a;i++){
         c = 10*c;}
      int e = (c-1)*b/9;
      System.out.println(e);}
    else{
      for(int i=0;i<b;i++){
         d = 10*d;}
      int f = (d-1)*a/9;
      System.out.println(f);}
  }
}
       import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner I = new Scanner(System.in);
    int a =I.nextInt();
    int b =I.nextInt();
    int c=1; int d=1;
    if(a>=b){
      for(int i=0;i<a;i++){
         c = 10*c;}
      int e = (c-1)*b/9;
      System.out.println(e);}
    else{
      for(int i=0;i<b;i++){
         d = 10*d;}
      int f = (d-1)*a/9;
      System.out.println(f);}
  }
} Main public static void main(String[] args){
    Scanner I = new Scanner(System.in);
    int a =I.nextInt();
    int b =I.nextInt();
    int c=1; int d=1;
    if(a>=b){
      for(int i=0;i<a;i++){
         c = 10*c;}
      int e = (c-1)*b/9;
      System.out.println(e);}
    else{
      for(int i=0;i<b;i++){
         d = 10*d;}
      int f = (d-1)*a/9;
      System.out.println(f);}
  } main {
    Scanner I = new Scanner(System.in);
    int a =I.nextInt();
    int b =I.nextInt();
    int c=1; int d=1;
    if(a>=b){
      for(int i=0;i<a;i++){
         c = 10*c;}
      int e = (c-1)*b/9;
      System.out.println(e);}
    else{
      for(int i=0;i<b;i++){
         d = 10*d;}
      int f = (d-1)*a/9;
      System.out.println(f);}
  } Scanner I = new Scanner(System.in); I new Scanner(System.in) int a =I.nextInt(); a I.nextInt() I.nextInt I int b =I.nextInt(); b I.nextInt() I.nextInt I int c=1; c 1 int d=1; d 1 if(a>=b){
      for(int i=0;i<a;i++){
         c = 10*c;}
      int e = (c-1)*b/9;
      System.out.println(e);}
    else{
      for(int i=0;i<b;i++){
         d = 10*d;}
      int f = (d-1)*a/9;
      System.out.println(f);} a>=b a b {
      for(int i=0;i<a;i++){
         c = 10*c;}
      int e = (c-1)*b/9;
      System.out.println(e);} for(int i=0;i<a;i++){
         c = 10*c;} int i=0; int i=0; i 0 i<a i a i++ i++ i {
         c = 10*c;} {
         c = 10*c;} c = 10*c c 10*c 10 c int e = (c-1)*b/9; e (c-1)*b/9 (c-1)*b (c-1) c 1 b 9 System.out.println(e) System.out.println System.out System System.out e {
      for(int i=0;i<b;i++){
         d = 10*d;}
      int f = (d-1)*a/9;
      System.out.println(f);} for(int i=0;i<b;i++){
         d = 10*d;} int i=0; int i=0; i 0 i<b i b i++ i++ i {
         d = 10*d;} {
         d = 10*d;} d = 10*d d 10*d 10 d int f = (d-1)*a/9; f (d-1)*a/9 (d-1)*a (d-1) d 1 a 9 System.out.println(f) System.out.println System.out System System.out f String[] args args public class Main{
  public static void main(String[] args){
    Scanner I = new Scanner(System.in);
    int a =I.nextInt();
    int b =I.nextInt();
    int c=1; int d=1;
    if(a>=b){
      for(int i=0;i<a;i++){
         c = 10*c;}
      int e = (c-1)*b/9;
      System.out.println(e);}
    else{
      for(int i=0;i<b;i++){
         d = 10*d;}
      int f = (d-1)*a/9;
      System.out.println(f);}
  }
} public class Main{
  public static void main(String[] args){
    Scanner I = new Scanner(System.in);
    int a =I.nextInt();
    int b =I.nextInt();
    int c=1; int d=1;
    if(a>=b){
      for(int i=0;i<a;i++){
         c = 10*c;}
      int e = (c-1)*b/9;
      System.out.println(e);}
    else{
      for(int i=0;i<b;i++){
         d = 10*d;}
      int f = (d-1)*a/9;
      System.out.println(f);}
  }
} Main
import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner I = new Scanner(System.in);
    int a =I.nextInt();
    int b =I.nextInt();
    int c=1; int d=1;
    if(a>=b){
      for(int i=0;i<a;i++){
         c = 10*c;}
      int e = (c-1)*b/9;
      System.out.println(e);}
    else{
      for(int i=0;i<b;i++){
         d = 10*d;}
      int f = (d-1)*a/9;
      System.out.println(f);}
  }
}
      