7 lines
176 B
Python
7 lines
176 B
Python
while(True) :
|
|
a, b = map(int, input().split())
|
|
if a==0 and b==0 : break
|
|
|
|
if a%b==0 : print("multiple")
|
|
elif b%a==0 : print("factor")
|
|
else : print("neither") |