{"problem":{"name":"Choose Integers","description":{"content":"We ask you to select some number of positive integers, and calculate the sum of them. It is allowed to select as many integers as you like, and as large integers as you wish. You have to follow these,","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc060_b"},"statements":[{"statement_type":"Markdown","content":"We ask you to select some number of positive integers, and calculate the sum of them.\nIt is allowed to select as many integers as you like, and as large integers as you wish. You have to follow these, however: each selected integer needs to be a multiple of $A$, and you need to select at least one integer.\nYour objective is to make the sum congruent to $C$ modulo $B$. Determine whether this is possible.\nIf the objective is achievable, print `YES`. Otherwise, print `NO`.\n\n## Constraints\n\n*   $1 ≤ A ≤ 100$\n*   $1 ≤ B ≤ 100$\n*   $0 ≤ C < B$\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$A$ $B$ $C$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc060_b","tags":[],"sample_group":[["7 5 1","YES\n\nFor example, if you select $7$ and $14$, the sum $21$ is congruent to $1$ modulo $5$."],["2 2 1","NO\n\nThe sum of even numbers, no matter how many, is never odd."],["1 100 97","YES\n\nYou can select $97$, since you may select multiples of $1$, that is, all integers."],["40 98 58","YES"],["77 42 36","NO"]],"created_at":"2026-03-03 11:01:14"}}