~cpp
#include<iostream>
#include<cstring>//문 교는 (strcmp)를
using namespace std;
void main()
{
char buf[64]={0,};
cin>>buf;
int length=strlen(buf);//길가 됨.
char*b=new char[length+1];
for(int i=(length-1);i>=0;i--)
{
b[(length-1)-i]=buf[i];
}
b[length]='\0';//NULL문는 문 고 바로 다 는다.
cout<< b <<endl;
if(strcmp(buf, b) == 0)
{
cout<<"T"<<endl;
}
else
{
cout<<"F"<<endl;
}
}










