문제 https://www.acmicpc.net/problem/5086
코드
while True: a, b = map(int, input().split()) if a == 0 & b == 0: break if b % a == 0: print("factor") elif a % b == 0: print("multiple") else: print("neither")