#include<iostream>
using namespace std;
void exchange(int *p1,int *p2);
int main( )
{ int a,b;
cin>>a>>b;
exchange(&a,&b);
cout<<a<<" "<<b<<endl;
return 0;
}
void exchange(int *p1,int *p2)
{ int t;
t=*p1;
*p1=*p2;
*p2=t;
}
#include <iostream>
using namespace std;
void exchange( );
int a,b;
int main( )
{ cin>>a>>b;
exchange( );
cout<<a<<" "<<b<<endl;
return 0;
}
void exchange( )
{ int t;
t=a;
a=b;
b=t;
}
#include <iostream>
using namespace std;
void exchange(int a[2]);
int main( )
{int b[2];
cin>>b[0]>>b[1];
exchange(b);
cout<<b[0]<<" "<<b[1]<<endl;
return 0;
}
void exchange(int a[2])
{ int t;
t=a[0];
a[0]=a[1];
a[1]=t;
}
#include<iostream>
using namespace std;
int main()
{
void exchange(int *p1,int *p2);
int *pointer_1,*pointer_2,a,b;
cin>>a>>b;
pointer_1=&a;
pointer_2=&b;
exchange(pointer_1,pointer_2);
cout<<a<<b<<endl;
return 0;
}
void exchange(int *p1,int *p2)
{
int temp;
temp=*p1;
*p1=*p2;
*p2=temp;
}