#include<stdio.h>
#include<string.h>
void main()
{
int i,count=0,ch1[256]={0},ch2[256]={0};
char s1[20],s2[20];
gets(s1);
gets(s2);
for(i=0;i<256;i++)
if(ch1[i]>0||ch2[i]>0)
{putchar(i);
count++;
}
if(count==0)
printf("NULL");
putchar('\n');
getchar();
}