# coding utf-8 def Input_func(): hitsuji_inputfunc = [] first_get_input = int(input()) for line in range(first_get_input): hitsuji_inputfunc.append(input().split(" ")) return hitsuji_inputfunc def Plus_func(hitsuji_plus_func): for line in hitsuji_plus_func: line[2] = int(line[2]) + 1 return hitsuji_plus_func def Prt_func(hitsuji_main_plus): for line in hitsuji_main_plus: print(line[0], line[1], line[2], line[3]) def main(): hitsuji_main = Input_func() hitsuji_main_plus = Plus_func(hitsuji_main) Prt_func(hitsuji_main_plus) if __name__ == '__main__': main()