#include <bits/stdc++.h>
using namespace std;

#define ll long long
const ll MOD = 1e9+7;
const ll INF = 0x7f7f7f7f;
const ll INFLL = 0x7f7f7f7f7f7f7f7f;

#define End return 0; }
#define of ios::sync_with_stdio(0); cin.tie(0);
#define story int main() {
#define The

The story of input_output_is_too_hard:

	ll a, b;
	int T;
	cin >> T;
	while (T--) {
		cin >> a >> b;
		cout << a+b << " " << a-b << " " << a*b << endl;
	}

The End