import java.util.*; public class a { Scanner in=new Scanner(System.in); public static void main(String[] args) { new a().go(); } private void go() { while(true){ int c=in.nextInt(),f=in.nextInt(),ch=in.nextInt(),p=in.nextInt(); if(c==0&p==0&ch==0&&f==0)break; double min=9*Math.max(f-.5,0)+4*Math.max(ch-.5,0)+4*Math.max(p-.5,0);; double max=9*(f+.5)+4*(ch+.5)+4*(p+.5); if(cmin)System.out.println("yes"); else System.out.println("no"); } } } //Close Enough Computations //calories round //trivial