#include<stdio.h>
int main()
{
    int a,b,c,d,e,f,g,h;
    scanf("%d",&a,b,c,d,e,f,g,h);
    printf("%d",h,a,b,c,d,e,f,g);
    return 0;
}