import java.util.*;
public class Main {
    public static int ans(int val){
        int count = 0;
        while(val > 1){
            if(val % 100 == 0){
                count++;
                val /= 100;
            } else {
                break;
            }
        }
        return count;
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int d = sc.nextInt();
        int n = sc.nextInt();
        int count = 0;
        int i = 1;
        while(count < n){
            if(ans(i) == d){
                count++;
            }
            i++;
        }
        System.out.println(i-1);
    }
} import java.util.*; util.* java public class Main {
    public static int ans(int val){
        int count = 0;
        while(val > 1){
            if(val % 100 == 0){
                count++;
                val /= 100;
            } else {
                break;
            }
        }
        return count;
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int d = sc.nextInt();
        int n = sc.nextInt();
        int count = 0;
        int i = 1;
        while(count < n){
            if(ans(i) == d){
                count++;
            }
            i++;
        }
        System.out.println(i-1);
    }
} Main public static int ans(int val){
        int count = 0;
        while(val > 1){
            if(val % 100 == 0){
                count++;
                val /= 100;
            } else {
                break;
            }
        }
        return count;
    } ans {
        int count = 0;
        while(val > 1){
            if(val % 100 == 0){
                count++;
                val /= 100;
            } else {
                break;
            }
        }
        return count;
    } int count = 0; count 0 while(val > 1){
            if(val % 100 == 0){
                count++;
                val /= 100;
            } else {
                break;
            }
        } val > 1 val 1 {
            if(val % 100 == 0){
                count++;
                val /= 100;
            } else {
                break;
            }
        } if(val % 100 == 0){
                count++;
                val /= 100;
            } else {
                break;
            } val % 100 == 0 val % 100 val 100 0 {
                count++;
                val /= 100;
            } count++ count val /= 100 val 100 {
                break;
            } break; return count; count int val val public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int d = sc.nextInt();
        int n = sc.nextInt();
        int count = 0;
        int i = 1;
        while(count < n){
            if(ans(i) == d){
                count++;
            }
            i++;
        }
        System.out.println(i-1);
    } main {
        Scanner sc = new Scanner(System.in);
        int d = sc.nextInt();
        int n = sc.nextInt();
        int count = 0;
        int i = 1;
        while(count < n){
            if(ans(i) == d){
                count++;
            }
            i++;
        }
        System.out.println(i-1);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int count = 0; count 0 int i = 1; i 1 while(count < n){
            if(ans(i) == d){
                count++;
            }
            i++;
        } count < n count n {
            if(ans(i) == d){
                count++;
            }
            i++;
        } if(ans(i) == d){
                count++;
            } ans(i) == d ans(i) ans i d {
                count++;
            } count++ count i++ i System.out.println(i-1) System.out.println System.out System System.out i-1 i 1 String[] args args public class Main {
    public static int ans(int val){
        int count = 0;
        while(val > 1){
            if(val % 100 == 0){
                count++;
                val /= 100;
            } else {
                break;
            }
        }
        return count;
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int d = sc.nextInt();
        int n = sc.nextInt();
        int count = 0;
        int i = 1;
        while(count < n){
            if(ans(i) == d){
                count++;
            }
            i++;
        }
        System.out.println(i-1);
    }
} public class Main {
    public static int ans(int val){
        int count = 0;
        while(val > 1){
            if(val % 100 == 0){
                count++;
                val /= 100;
            } else {
                break;
            }
        }
        return count;
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int d = sc.nextInt();
        int n = sc.nextInt();
        int count = 0;
        int i = 1;
        while(count < n){
            if(ans(i) == d){
                count++;
            }
            i++;
        }
        System.out.println(i-1);
    }
} Main
import java.util.*;
public class Main {
    public static int ans(int val){
        int count = 0;
        while(val > 1){
            if(val % 100 == 0){
                count++;
                val /= 100;
            } else {
                break;
            }
        }
        return count;
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int d = sc.nextInt();
        int n = sc.nextInt();
        int count = 0;
        int i = 1;
        while(count < n){
            if(ans(i) == d){
                count++;
            }
            i++;
        }
        System.out.println(i-1);
    }
}