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; boolean splaceno = true; float v = vysledek; while (vysledek > 0) { vysledek = vysledek + urok / 100.0f * vysledek / 12 - platba; mesice++; if (mesice % 12 == 0) { mesice = 0; roky--; if (roky == 0) { break; } } if(vysledek < 0){ break; } } if(vysledek <= 0){ System.out.println("YES"); }else{ System.out.println("NO"); } } } }