#include #include #include using namespace std; int main() { int T; cin >> T; while(T --) { unsigned long long arr[4]; cin >> arr[0] >> arr[1] >> arr[2] >> arr[3]; sort(arr,arr + 4); //unsigned long long le = 5764607; if((arr[0] / 10 + arr[1] / 10 + arr[2] / 10 > arr[3] / 10 || arr[0] + arr[1] + arr[2] > arr[3]) && arr[0] > 0 && arr[1] > 0 && arr[2] > 0 && arr[3] > 0) cout << "Yes" << endl; else cout << "No" << endl; } return 0; }