#include <stdio.h> int main(){ int a,b,c,d,n; while(scanf("%d %d %d %d %d",&n,&a,&b,&c,&d)!=-1) 2*(a+b+c+d)>=n?puts("YES"):puts("NO"); return 0;}
80 20 20 10 10 105 10 25 05 05
YES NO
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!