#include<stdio.h>
int main()
{
int x, y, i, j, k = 0, n = 0;
int a[100];
int b[100];
int c[100];
scanf_s("%d", &x);
for (i = 0; i < x; i++)
scanf_s("%d", &a[i]);
scanf_s("%d", &y);
for (j = 0; j < y; j++)
scanf_s("%d", &b[j]);
for (i = 0; i < x; i++)
{
for (j = 0; j < y; j++)
{
if (a[i] == b[j])
{
c[k] = a[i];//将相同数储存在c数组
k++;
break;
}
}
}
if (k == 0)
printf("No Answer");
for (i = 0; i < k; i++)
{
n = 0;
for (j = 0; j < i; j++)//判断重复数字
{
if (c[i] == c[j])
n++;
}
if (n == 0)
printf("%d ",c[i]);
}
return 0;
}