using System; using System.Collections.Generic; using System.Linq; public class yukicoder { public static decimal looser(decimal h, decimal w, decimal n) { decimal range = h * w; if(range % n == 0) { return n; } else { return range % n; } } public static void Main() { decimal[] input = Console.ReadLine().Trim().Split(' ').Select(x => decimal.Parse(x)).ToArray(); decimal h = input[0]; decimal w = input[1]; decimal n = input[2]; decimal k = input[3]; if(looser(h, w, n) == k) { Console.WriteLine("YES"); } else { Console.WriteLine("NO"); } } }