using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { // No.166 マス埋めゲーム long[] hwnk = Console.ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray(); long tmp = hwnk[0] * hwnk[1] % hwnk[2]; if (tmp == 0 || tmp == hwnk[3]) Console.WriteLine("YES"); else Console.WriteLine("NO"); } }