import java.io.*; import java.util.*; import java.math.*; class Main166 { public static void out (Object out) { System.out.println(out); } public static void main (String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] line = br.readLine().split(" "); int h = Integer.parseInt(line[0]); int w = Integer.parseInt(line[1]); int n = Integer.parseInt(line[2]); int k = Integer.parseInt(line[3]) % n; System.out.println((h * w) % n == k ? "YES" : "NO"); } }