a,b,c=map(int,input().split(" ")) d=False for i in range(0,(c//a)+1): if c-(a*i)==0 or (c-(a*i))%b==0: d=True break if d==True: print("YES") else: print("NO")
a,b,c=map(int,input().split(" ")) d=False for i in range(0,(c//a)+1): if c-(a*i)==0 or (c-(a*i))%b==0: d=True break if d==True: print("YES") else: print("NO")
a,b,c=map(int,input().split(" ")) d=False for i in range(0,(c//a)+1): if c-(a*i)==0 or (c-(a*i))%b==0: d=True break if d==True: print("YES") else: print("NO")