// Arup Guha
// 9/1/2021
// Quick program to verify that all of my additions were correct in the C file, since Java has this built in =)

import java.math.*;
import java.util.*;

public class bigintadd {

	public static void main(String[] args) {
	
		Scanner stdin = new Scanner(System.in);
		int nC = stdin.nextInt();
		
		for (int loop=0; loop<nC; loop++) {
			BigInteger num1 = new BigInteger(stdin.next());
			BigInteger num2 = new BigInteger(stdin.next());
			BigInteger res = num1.add(num2);
			System.out.println(num1+" + " + num2 + " = " + res);
		}
	
	}
}