#include<iostream>
int main()
{
    using namespace std;
    char str[5];
    cout<<"依次输入字母:"<<endl;
    for (int i=0;i<=4;i++)
    {
        cin>>str[i];
    }
    for (int i=4;i>=0;i--)
    {
        cout<<str[i];
    }
    cout<<endl;
}