#include<bits/stdc++.h>

#define ll long long
#define min(x,y) x<y?x:y
#define max(x,y) x>y?x:y

using namespace std;

int main()
{
    ll n,k;
    cin >> n>>k;
    
    while (k--)
    {
        if(n%200==0)
        {
            n=n/200;
        }
        else
        {
            n = (n*1000)+200;
        }
    }
    cout << n <<endl;
    
}
/**
*    author:  Taichicchi
*    created: 13.04.2021 21:52:36
**/

#include <bits/stdc++.h>

#include <algorithm>
#include <iostream>
#include <vector>

using namespace std;

#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;

int main() {
    int M, H;
    cin >> M >> H;
    cout << ((H % M == 0) ? "Yes" : "No") << endl;
    return 0;
}