#include <bits/stdc++.h>
using namespace std;

int main() {
  int M,H;
  cin>>M>>H;
  if(H%M==0) cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}
#include <bits/stdc++.h>
 
using namespace std;
 
int main()
{
   char C1,C2,C3;
   cin>>C1>>C2>>C3;
   if (C1==C2&&C2==C3){
    cout<<"Won";
   }else{
      cout<<"Lost";
   }
   return 0;
}