//stack 스택
/*
#include <stdio.h>
int stack[500];
int top=-1; //마지막으로 입력된 데이터의 위치
// top==-1 : stack is empty 비어있다.
int main()
{
// data 1 push
top++;
stack[top]=1;
//data 2 push
top++;
stack[top]=2;
//pop
printf("pop data : %d\n",stack[top]);
top--;
//pop
printf("pop data : %d\n",stack[top]);
top--;
printf("top : %d\n",top);
//stack에 있는 모든 데이터를 출력해라
while(top!=-1)
{
printf("%d\n",stack[top]);
top--;
}
}
*/
/*
#include<stdio.h>
char stack[501];
int top=-1, n, i;
char str[501];
int main()
{
scanf("%s", str);
for(i=0; str[i]!=0; i++)
{
top++;
stack[top]=str[i];
}
while(top!=-1)
{
printf("%c", stack[top]);
top--;
}
}
*/
#include<stdio.h>
char stack[201];
char str[201];
int top=-1,n,i;
int main()
{
scanf("%d " , &n);
scanf("%s", str);
for(i=n-1;i>=0;i--)
{
top++;
stack[top]=str[i];
}
while(top!=-1)
{
printf("%c", stack[top]);
if()
{
}
top--;
}
}