#include #include #include #include #include #include #include using namespace std; #define eps 1e-8 #define mod 1000000007 #define ll long long #define ull unsigned long long #define inf 0x3f3f3f3f #define mnx 100005 #define lson l, m, rt << 1 #define rson m+1, r, rt << 1 | 1 int a[mnx]; int main(){ int cas; scanf( "%d", &cas ); while( cas-- ){ for( int i = 0; i < 6; i++ ){ scanf( "%d", &a[i] ); } sort( a, a + 6 ); int ans1 = a[5] + a[4]; int ans2 = a[3] + a[2] + a[1]; if( ans1 > ans2 ){ puts( "Grandpa Shawn is the Winner!" ); } else puts( "What a sad story!" ); } return 0; }