为什么这段代码不行

钟皓玮 发表于 10天前 · 关联问题 清扫房间

def clean(c,d,e):

for i in range (2,min(c,e) + 1): if c % i == 0 and e % i == 0: return 'NO' return 'YES'

x = list(map(int, input().split())) k,a,b = x[0],x[1],x[2] print(clean(k,a,b))