n=int(input())
m=int(input())
k=int(input())
if(k%n==0 or k%m==0):
print("YES")
else:
print("NO")
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
n=int(input())
m=int(input())
k=int(input())
if(k%n==0 or k%m==0):
print("YES")
else:
print("NO")