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