using System; class Program { static void Main(string[] args) { var T = int.Parse(Console.ReadLine()); for (int i = 0; i < T; i++) { var temp = Console.ReadLine().Split(); Console.WriteLine("{0} {1} {2} {3}", temp[0], temp[1], int.Parse(temp[2]) + 1, temp[3]); } } }