Help me in solving EXAMTIME problem

My issue

it is showing that failed in hidden test case what to do?

My code

#include <bits/stdc++.h>
using namespace std;

int main() {
	// your code goes here
    int t;
    cin>>t;
     
     while(t-->0){
         int a,b,c,d,e,f;
         cin>>a>>b>>c>>d>>e>>f;
         if (a+b+c>d+e+f)
            cout<<"Dragon"<<endl;
         else if(a+b+c<d+e+f)
            cout<<"Sloth"<<endl;
         else if (a>b)
            cout<<"Dragon"<<endl;
        else if(a<b)
            cout<<"Sloth"<<endl;
        else if(c>d)
            cout<<"Dragon"<<endl;
        else if(c<d)
            cout<<"Tie"<<endl;
        else 
            cout<<"Tie"<<endl;
        
     }
}

Learning course: Roadmap to 3*
Problem Link: https://www.codechef.com/learn/course/klu-roadmap-3star/KLURMP300A/problems/EXAMTIME