// name: microwave
import java.io.*;

public class MicrowaveTemplate {
    static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

    static class TestCase {
        long n;
        long m;
    }
    
    public static TestCase read() throws java.lang.Exception {
        TestCase testCase = new TestCase();
        String[] info = br.readLine().split(" ");
        testCase.n = Long.parseLong(info[0]);
        testCase.m = Long.parseLong(info[1]);
        return testCase;
    }

    public static void logic(TestCase testCase) {
        // duration: A positive integer denoting the time duration you want to set on the microwave, in seconds
        // addAmt: A positive integer denoting the how much the microwave's "Add" button adds to the timer, in seconds
        long duration = testCase.n;
        long addAmt = testCase.m;

        // TODO: YOUR CODE HERE

        return; // Remember to output your solution; replace this line when you're done!
    }

	public static void main(String[] args) throws java.lang.Exception {
        int T = Integer.parseInt(br.readLine());
        for (int i = 0; i < T; i++) {
            logic(read());
        }
    }
}