#include<iostream> #include<cstdio> #include<algorithm> using namespace std; int main(){ int t; scanf("%d",&t); for(int i=0;i<t;i++) { int x; scanf("%d",&x); if(x>30){ if(x!=36 && x!=40 && x!=44) printf("YES\n6 10 14 %d\n",x-30); else printf("YES\n6 10 15 %d\n",x-31); }else{ printf("NO\n"); } } }
https://vjudge.net/contest/387172#problem/A