<reponame>vinihf/Prog1_ADS_2019<filename>desafioURI/1044.py
Ax,Bx = input().split()
A = int(Ax)
B = int(Bx)
if A%B==0 or B%A==0:
    print("Sao Multiplos")
else:
    print("Nao sao Multiplos")
Ax,Bx = input().split()
A = int(Ax)
B = int(Bx)
if A%B==0 or B%A==0:
    print("Sao Multiplos")
else:
    print("Nao sao Multiplos")