#38502: python一行解


10213204@gm.ptivs.tn.edu.tw (:))

學校 : 國立臺南高級工業職業學校
編號 : 254678
來源 : [1.173.22.158]
最後登入時間 :
2024-10-06 21:41:11

print("YES"if (lambda x:x[0]%x[1]==0 or str(x[1]) in str(x[0]))(list(map(int,input().split()))) else "NO")