#include #include #include using namespace std; //typedef __int64 LL; int main(){ int a,b; cin>>a>>b; if(b%a==0)cout<