#ifndef POINTER02_H_
#define POINTER02_H_
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cassert>
void int_swap (int *a, int *b);
int main ()
{
int n;
scanf("%d", &n);
for (int i = 0, a, b; i < n; i++)
{
scanf("%d%d", &a, &b);
int_swap(&a, &b);
printf("%d %d\n", a, b);
}
}
#endif // POINTER02_H_
I2lmbmRlZiBQT0lOVEVSMDJfSF8KI2RlZmluZSBQT0lOVEVSMDJfSF8KCiNpbmNsdWRlIDxjc3RkaW8+CiNpbmNsdWRlIDxjc3RkbGliPgojaW5jbHVkZSA8Y3N0cmluZz4KI2luY2x1ZGUgPGNhc3NlcnQ+Cgp2b2lkIGludF9zd2FwIChpbnQgKmEsIGludCAqYik7CgppbnQgbWFpbiAoKQp7CiAgICBpbnQgbjsKICAgIHNjYW5mKCIlZCIsICZuKTsKCiAgICBmb3IgKGludCBpID0gMCwgYSwgYjsgaSA8IG47IGkrKykKICAgIHsKICAgICAgICBzY2FuZigiJWQlZCIsICZhLCAmYik7CiAgICAgICAgaW50X3N3YXAoJmEsICZiKTsKICAgICAgICBwcmludGYoIiVkICVkXG4iLCBhLCBiKTsKICAgIH0KfQojZW5kaWYgLy8gUE9JTlRFUjAyX0hfCg==