#include <stdio.h>
void swap_pointers(int **p1, int **p2) {
// Your logic here
int *temp = *p1; // store first pointer
*p1 = *p2; // first pointer now points where second was pointing
*p2 = temp; // second pointer now points where first was pointing
}
int main() {
int a, b;
scanf("%d %d", &a, &b);
int *p1 = &a;
int *p2 = &b;
swap_pointers(&p1, &p2);
printf("%d %d", *p1, *p2);
return 0;
}