#include<iostream>
using namespace std ;
int main(){
    int a,b;
    cin>>a>>b;
    if(b==0){
        cout<<"invalid input";
    }
else{
    if(a%b==0)
    cout<<"true";
    else 
    cout<<"false;"
}
   return0; 
}