#include <iostream>
using namespace std;
int main(){
int a,b,tmp;
scanf("%d%d",&a,&b);
if(a<b){
tmp=a;
a=b;
b=tmp;
}
if(a%b==0) cout<<"Sao Multiplos";
else cout<<"Nao sao Multiplos";
return 0;
}