import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); long a = sc.nextLong(); long b = sc.nextLong(); long c = sc.nextLong(); long X = sc.nextLong(); long gcd = gcd(a,gcd(b,c)); System.out.println(X % gcd != 0 ? "No" : "Yes"); } private static long gcd(long a, long b){ long r = a % b; while(r != 0){ a = b; b = r; r = a % b; } return b; } }