#-*-coding:utf-8-*-



def main():

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



    for i in range(10 ** 6):

        if (a * i - c) % b == 0:

            print('YES')

            exit()

    print('NO')



if __name__ == '__main__':

    main()
#-*-coding:utf-8-*-



def main():

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

    reminder = []

    for i in range(a, b*a+1, a):

        reminder.append(i % b)

    if c in reminder:

        print('YES')

    else:

        print('NO')



if __name__ == '__main__':

    main()
# -*-coding:utf-8-*-
def main():
    a, b, c = list(map(int, input().split()))
    for i in range(10**6):
        if (a * i - c) % b == 0:
            print("YES")
            exit()
    print("NO")


if __name__ == "__main__":
    main()

# -*-coding:utf-8-*-
def main():
    a, b, c = list(map(int, input().split()))
    reminder = []
    for i in range(a, b * a + 1, a):
        reminder.append(i % b)
    if c in reminder:
        print("YES")
    else:
        print("NO")


if __name__ == "__main__":
    main()

-    for i in range(10**6): -        if (a * i - c) % b == 0: -            print("YES") -            exit() -    print("NO") +    reminder = [] +    for i in range(a, b * a + 1, a): +        reminder.append(i % b) +    if c in reminder: +        print("YES") +    else: +        print("NO")