// editor1
#include<iostream>
using namespace std;
int main()
{
    long long a,b;
    cin>>a>>b;
    if(b==0)
        cout<<"Invalid input";
    else if(a%b==0)
        cout<<"true";
    else
        cout<<"false";
    return 0;