import java.io.*; import java.util.*; public class SEASONS { public static void main( String[] args ) { int[][] mult = { {2, 1, 3, -2}, {1, 3, 1, -1}, {2, -2, -1, 3}, {0, 3, 1, 0}, {1, 0, 0, 3}, {2, 0, 3, 0}, {0, 1, 3, 0}, {3, 2, 1, 0}, {2, 1, 1, 3}, {3, -2, 3, -1}, {2, 0, 3, 1}, {3, 1, 3, 1}, {1, 3, 1, 0}, {3, 2, 3, 2}, {3, 2, 3, 1} }; String seasons[] = {"spring", "summer", "fall", "winter"}; try { BufferedReader in = new BufferedReader(new FileReader("SEASONS.IN")); PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("SEASONS.OUT"))); int n = Integer.parseInt(in.readLine()); for ( int i = 1; i <= n; i++ ) { StringTokenizer st = new StringTokenizer(in.readLine()); String best = ""; int bestScore = 0; int[] userIn = new int[15]; for ( int q = 0; q < 15; q++ ) { userIn[q] = Integer.parseInt(st.nextToken()); } for ( int k = 0; k < 4; k++ ) { int seasonScore = 0; for ( int j = 0; j < 15; j++ ) { seasonScore += mult[j][k] * userIn[j]; } if ( seasonScore > bestScore || (seasonScore == bestScore && bestScore > 0) ) { if ( best.equals("") || seasonScore > bestScore ) best = "Come to Ithaca in "; if ( k > 0 & !(seasonScore > bestScore) ) best += " or "; best += seasons[k]; bestScore = seasonScore; } } if ( bestScore == 0 ) { best = "Don't come to Ithaca"; } out.println("Data Set " + i + ": " + best + "!"); } in.close(); out.close(); } catch ( IOException e ) { System.out.println("i/o error"); } } }