Dante is engaged in a fight with "The Savior". Before he can fight it with his sword, he needs to break its shields. He has two guns, Ebony and Ivory, each of them is able to perform any non-negative number of shots.

For every bullet that hits the shield, Ebony deals a units of damage while Ivory deals b units of damage. In order to break the shield Dante has to deal exactly c units of damage. Find out if this is possible.


-----Input-----

The first line of the input contains three integers a, b, c (1 ≤ a, b ≤ 100, 1 ≤ c ≤ 10 000) — the number of units of damage dealt by Ebony gun and Ivory gun, and the total number of damage required to break the shield, respectively.


-----Output-----

Print "Yes" (without quotes) if Dante can deal exactly c damage to the shield and "No" (without quotes) otherwise.


-----Examples-----
Input
4 6 15

Output
No

Input
3 2 7

Output
Yes

Input
6 11 6

Output
Yes



-----Note-----

In the second sample, Dante can fire 1 bullet from Ebony and 2 from Ivory to deal exactly 1·3 + 2·2 = 7 damage. In the third sample, Dante can fire 1 bullet from ebony and no bullets from ivory to do 1·6 + 0·11 = 6 damage.

Difficulty: interview

Starter code:

Solutions:
a, b, c = list(map(int, input().split()))
p = [0] * 100000
p[0] = 1
p[a] = 1
p[b] = 1
for i in range(c + 1):
    if p[i]:
        p[i + a] = 1
        p[i + b] = 1
if p[c]:
    print('Yes')
else:
    print('No')


# You lost the game.
a,b,c = list(map(int, input().split()))

T = [not((c-a*k)%b) for k in range(c//a+1)]

if sum(T):
    print("Yes")
else:
    print("No")


def mina():
    a, b, c = map(int, input().split())
    k = 0
    while k * a <= c:
        if (c - k * a) % b == 0:
            print("Yes")
            return
        k += 1
    print("No")
    
mina()

A, B, C = [int(x) for x in input().split()]

for i in range(0, C + 1):
    if A * i > C:
        break
    if (C - A * i) % B == 0:
        print("Yes")
        return

print("No")


a, b, c = list(map(int, input().split()))
f = False
for na in range(1 + c//a):
    if f:
        break
    for nb in range(1 + c//b):
        if a * na + b * nb == c:
            f = True
            break
if f:
    print("Yes")
else:
    print("No")


a, b, c = map(int, input().split())
for i in range(0, c + 1, a):
    if c - i >= 0 and (c - i) % b == 0:
        print('Yes')
        return
print('No')

a, b, c = list(map(int, input().split()))
for x in range(c // a + 1):
    if (c - a * x) % b == 0:
        print('Yes')
        break
else:
    print('No')


def solve(a,b,c):
    x, y = c//a, c//b
    for i in range(x + 1):
        for j in range(y + 1):
            if a * i + b * j == c:
                return True
    return False

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

if solve(a,b,c):
    print('Yes')
else:
    print('No')


a,b,c = map(int, input().split())
x = 0
while a * x <= c:
    if (c - a * x) % b == 0: 
        print('Yes')
        return
    x+=1
print('No')

a, b, c = map(int, input().split())
for i in range(0, 10000):
    if (i * a > c):
        break
    if (c - i * a) % b == 0:
        print("Yes")
        return
print("No")

a,b,c = list(map(int,input().split()))
num = c // a + 1
temp = 0
for i in range(num):
    if (c - i*a)%b == 0:
        temp = 1
        break
if temp == 1:
    print("Yes")
else:
    print("No")


a,b,c=map(int,input().split())
for i in range(c//a+1):
    if (c-i*a)%b==0: print('Yes'); break
else: print('No')

import collections
import math

a, b, c = list(map(int, input().split()))
#n = int(input())
for i in range(c // a + 1):
    if (c - a * i) % b == 0:
        print('Yes')
        return
print('No')



a, b, c = [int(x) for x in input().split()]
f = True
for i in range(c // a + 1):
    for j in range((c - i) // b + 1):
        if i * a + j * b == c:
            f = False
            break
    if not f:
        break
if not f :
    print("Yes")
else:
    print("No")

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

c_left = c
while c_left >= 0:
    if c_left % b == 0:
        print("Yes")
        break
    c_left -= a
if c_left < 0:
    print("No")


__author__ = 'Utena'
a,b,c=map(int,map(int,input().split()))
while True:
    if c<0:
        print('No')
        break
    elif c%a==0 or c%b==0:
        print('Yes')
        break
    c-=a

black, white, health = map(int, input().split())
damage = [False] * (health + 1 + max(white, black))
damage[0] = True
for i in range(health):
    if damage[i]:
        damage[i + black] = True
        damage[i + white] = True

if damage[health]:
    print('Yes')
else:
    print('No')

a, b, c = map(int, input().split())
possible = False
for i in range(c//a + 1):
    if (c - a*i) % b == 0:
        possible = True
if possible:
    print('Yes')
else:
    print('No')

a, b, c = list(map(int, input().split()))
key = 0
i = 0
while (i * b <= c):
    if (c - i * b) % a == 0:
        key = 1
        break
    i += 1
if key == 0:
    print('No')
else:
    print('Yes')


a, b, c = list(map(int, input().split()))
x1 = c // a + 1
f = False
for i in range(x1):
    j = (c - a*i) // b
    #print(i, i*a, j, b * j, c - a*i)
    if a * i + b * j == c:
        f = True
if f:
    print("Yes")
else:
    print("No")

line = [int(x) for x in input().strip().split(" ")]
a = line[0]
b = line[1]
c = line[2]

def doable(a, b, c):
	for i in range((c//a)+1):
		t = c-(i*a)
		# print("t: %s" % (t))
		if t%b==0:
			return True
	return False

if doable(a, b, c):
	print("Yes")
else:
	print("No")

w, b, sh = list(map(int, input().split()))
fl = False
while not fl and sh > 0:
    if sh % b == 0 or sh % w == 0:
        fl = True
    sh -= w
if fl:
    print('Yes')
else:
    print('No')


a,b,c=(int(z) for z in input().split())


def f(a,b,c):
    x=0
    ca=c//a
    res=0
    while x<=ca:
        if (c-res)%b==0:
            return "Yes"
        else:
            res+=a
            x+=1
    return "No"

print(f(a,b,c))

a,b,c=list(map(int,input().split()))
d=0
def ans(a,b,c,d):
    if c%a==0 or c%b==0:
        print('Yes')
        return
    else:
        a,b=min(a,b),max(a,b)
        ##print(a,b)
        while d<c:
            d+=a
            if (c-d)%b==0:
                print('Yes')
                return
            else:
                continue
        print("No")
        return
ans(a,b,c,d)