#include <cstdint>#include <iostream>intmain() {int count;if(!(std::cin >> count))return1;for(int i =0; i < count; ++i) {std::int64_t n, x, y;if(!(std::cin >> n >> x >> y))return1;std::cout << x + y <<':'<< x <<':'<< x +1<<':'<< y -1<<':'<< n * (n +1) /2<<'\n';}}