#include
#include
#include
#include
#include
#include
#include
#include
#include
#define LL __int64
using namespace std;
const int MAXN=200000+50;
const int INF=0x3f3f3f3f;
const double EPS=1e-9;
int dir4[][2]={{0,1},{1,0},{0,-1},{-1,0}};
int dir8[][2]={{0,1},{1,1},{1,0},{1,-1},{0,-1},{-1,-1},{-1,0},{-1,1}};
int dir_8[][2]={{-2,1},{-1,2},{1,2},{2,1},{2,-1},{1,-2},{-1,-2},{-2,-1}};
int a[MAXN];
int main()
{
int n;
while(scanf("%d",&n) && n)
{
int sum=0;
for(int i=0;i)
{
scanf("%d",&a[i]);
sum^=a[i];
}
if(sum==0) printf("No\n");
else
{
printf("Yes\n");
for(int i=0;i)
{
int s=sum^a[i];
if(s<a[i])
printf("%d %d\n",a[i],s);
}
}
}
return 0;
}