// NOTE: it is recommended to use this even if you don't understand the following code. using System; using System.IO; class luckydice { static void Main() { TextReader fin = Console.In; TextWriter fout = Console.Out; // uncomment the following lines if you want to read/write from files // fin = new StreamReader("input.txt"); // fout = new StreamWriter("output.txt"); string[] tokens = fin.ReadToEnd().Split( new char[] { ' ', '\t', '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries); int pos = 0; int N = int.Parse(tokens[pos++]); int[] A = new int[N], B = new int[N], C = new int[N], D = new int[N]; for (int i = 0; i < N; i++) { A[i] = int.Parse(tokens[pos++]); B[i] = int.Parse(tokens[pos++]); C[i] = int.Parse(tokens[pos++]); D[i] = int.Parse(tokens[pos++]); } int W1 = 0, W2 = 0, X = 0; // insert your code here fout.WriteLine(W1 + " " + W2 + " " + X); // print the result fout.Flush(); } }