using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace pj12 { class Program { static void Main(string[] args) { //デバック用 //Console.SetIn(new System.IO.StreamReader("../../input.txt")); float[] speed = Console.ReadLine().Trim().Split(' ').Select(x => float.Parse(x)).ToArray(); float spX = speed[0] * 1000 / 3600; float spY = speed[1] * 1000 / 3600; int coner = int.Parse(Console.ReadLine()); String look = "YES"; float[] road = new float[coner]; float[] line = Console.ReadLine().Trim().Split(' ').Select(x => float.Parse(x)).ToArray(); for (int i = 0; i < coner; i++) { road[i] = line[i]; } float X = spX, Y = spY; for (int i = 0; i < coner - 1; i++) { float kyori = spY * road[i] / spX; if (kyori > road[i + 1]) { look = "NO"; break; } } Console.WriteLine(look); } } }