/* * To change this template, choose Tools | Templates * and open the template in the editor. */ import java.util.ArrayList; import java.util.Scanner; /** * * @author vaskol */ public class mortgage { /** * @param args the command line arguments */ public static void main(String[] args) { String vstup = ""; ArrayList zoz = new ArrayList(); Scanner scan = new Scanner(System.in); vstup = scan.nextLine(); while (vstup.compareTo("0 0 0 0") != 0) { zoz.add(vstup); vstup = scan.nextLine(); }; for (String jeden : zoz) { String[] vysledok = jeden.split(" "); int s = Integer.parseInt(vysledok[1]); float dan = Float.parseFloat(vysledok[3]) / 100 / 12; float pompocet = Integer.parseInt(vysledok[0]); boolean help = false; int cas=Integer.parseInt(vysledok[2])*12; while((pompocet>0)||(cas>0)){ pompocet += pompocet*dan -s; cas--; } if(cas>=0) System.out.println("YES"); else System.out.println("NO"); } } }