import java.util.Scanner;
import java.io.*;
import java.math.BigDecimal;
public class Main {
public static void main(String[] args) {
int n;
Scanner in = new Scanner(System.in);
n=in.nextInt();
while(n--!=0){
String s1,s2;
s1=in.next();
s2=in.next();
BigDecimal b1 = new BigDecimal(s1);
BigDecimal b2 = new BigDecimal(s2);
System.out.printf("%s",s1);
System.out.print("+");
System.out.printf("%s",s2);
System.out.print("=");
System.out.println(b1.add(b2));
}
}
}