import java.util.Scanner; import java.lang.Float; public class mortgage { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (true) { int castka = sc.nextInt(); int platba = sc.nextInt(); int roky = sc.nextInt(); float urok = sc.nextFloat(); if (castka == 0 && platba == 0 && roky == 0 && Float.compare(urok, 0f) == 0) { break; } float vysledek = castka; int mesice = 0; while (vysledek > 0) { vysledek = vysledek + urok / 100.0f * vysledek / 12 - platba; mesice++; if (mesice % 12 == 0) { roky--; if(roky == -1){ break; } } } if (roky > 0) { System.out.println("YES"); } else if (roky == 0) { if (mesice == 0) { System.out.println("YES"); } else { System.out.println("NO"); } } else { System.out.println("NO"); } } } }