import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.io.IOException;
import java.util.StringTokenizer;
class Main {
public static void main(String[] args) throws IOException{
BufferedReader bf =
new BufferedReader(new InputStreamReader(System.in));
int num = Integer.parseInt(bf.readLine());
calculate(num);
}
private static void calculate(int num) {
for(int i = 1; i < 10; i++)
System.out.println(num + " * " + i + " = " + num * i);
}
}
10950
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.StringTokenizer;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader bf =
new BufferedReader(new InputStreamReader(System.in));
int length = Integer.parseInt(bf.readLine());
for (int i = 0; i < length; i++) {
StringTokenizer st = new StringTokenizer(bf.readLine());
int firstNum = Integer.parseInt(st.nextToken());
int secondNum = Integer.parseInt(st.nextToken());
System.out.println(firstNum + secondNum);
}
}
}