#include <iostream>
using namespace std;
#define flash ios::sync_with_stdio(0);cin.tie(0);
int main(){
  flash;
int x,u;
cin >> x >> u;
if(u % x == 0){
cout << "Yes";
}
else{
cout << "No";
}
}
#pragma GCC optimize("Ofast,unroll-loops")
#pragma GCC target("avx,avx2,sse,sse2")
#include <algorithm>
#include <iostream>
#include <cstdlib>
#include <cstring>
#include <cstdio>
#include <string>
#include <queue>
#include <cmath>
#include <map>
#include <set>
#define mem(a,x) memset(a,x,sizeof(a))
#define gi(x) scanf("%d",&x)
#define gi2(x,y) scanf("%d%d",&x,&y)
#define gll(x) scanf("%lld",&x)
#define gll2(x,y) scanf("%lld%lld",&x,&y)
using namespace std;
const double eps=1e-8; 
typedef long long ll;
const int MAXN=100005;
const ll mod=1e7+9;
const int inf=0x3f3f3f3f;

int main(){
	
	int x;
	cin>>x;
	cout<<100-(x%100)<<endl;
	
	return 0;
}













