#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
int a[100];
for (int i = 0; i < 20; i++)
cin >> a[i];
for (int i = 0; i < 10; i++)
{
int m = 0;
m = a[i];
a[i] = a[19-i];
a[19-i] = m;
}
for (int i = 0; i < 20; i++)
printf("N[%d] = %d\n", i, a[i]);
return 0;
}