import sys
input = sys.stdin.readline
while True:
a,b = map(int,input().split())
if a == 0 and b == 0:
break
if b%a ==0:
print("factor")
elif a%b == 0:
print("multiple")
else:
print('neither')
'문제풀이 > 백준(Boj) 문제풀이' 카테고리의 다른 글
[백준][정수론 및 조합론] 11050. 이항 계수 1 (파이썬/Python) (0) | 2021.09.24 |
---|---|
[백준][정수론 및 조합론] 1037. 약수 (파이썬/Python) (0) | 2021.09.23 |
[백준][동적 계획법1] 1912. 연속합 (파이썬/Python) (0) | 2021.09.23 |
[백준][그리디 알고리즘] 13305. 주유소 (파이썬/Python) (0) | 2021.09.23 |
[백준][그리디 알고리즘] 1541. 잃어버린 괄호 (파이썬/Python) (0) | 2021.09.20 |