MapleStory Finger Point

๐Ÿƒ‍โ™‚๏ธBaekjoon/Python

#5086 -python ๋ฐฐ์ˆ˜์™€ ์•ฝ์ˆ˜

HYEJU01 2024. 5. 17. 15:45
while(True):
    a,b = map(int,input().split())
    
    if (a==0 and b==0):
        break

    #factor
    if ( b % a == 0 ):
        print("factor")
    elif ( b % a == 0 or a % b == 0):
        print("multiple")
    else :
        print("neither")