Brian Su says to YSITD
string a, b; cin»a; b = a; reverse(a.begin(), a.end()); cout«(a==b?"yes":"no");