def computeGCD(x, y): 

  

   while(y): 

       x, y = y, x % y 

  

   return x 

a,b,c=list(map(int,input().split()))

if c%(computeGCD(a,b))==0:

  print('YES')

else:

  print('NO')
import math

a,b,c=list(map(int,input().split()))

if c%(math.gcd(a,b))==0:

  print('YES')

else:

  print('NO')
def computeGCD(x, y):
    while y:
        x, y = y, x % y
    return x


a, b, c = list(map(int, input().split()))
if c % (computeGCD(a, b)) == 0:
    print("YES")
else:
    print("NO")

import math

a, b, c = list(map(int, input().split()))
if c % (math.gcd(a, b)) == 0:
    print("YES")
else:
    print("NO")

-def computeGCD(x, y): -    while y: -        x, y = y, x % y -    return x - +import math -if c % (computeGCD(a, b)) == 0: +if c % (math.gcd(a, b)) == 0: