using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static long NN => long.Parse(ReadLine()); static long[] NList => ReadLine().Split().Select(long.Parse).ToArray(); static void Main() { var m = NList; var x = NN; var gcd = GCD(GCD(m[0], m[1]), m[2]); WriteLine(x % gcd == 0 ? "Yes" : "No"); } static long GCD(long a, long b) { if (a < b) return GCD(b, a); if (a % b == 0) return b; return GCD(b, a % b); } }