#include <iostream>
#include <fstream>
using namespace std;
int main()
{
ofstream ot("E:\\KQ.TXT");
string st1,st2;
cin>>st1>>st2;
ot<<st1.size()<<" "<<st2.size();
if(st1.size()!=st2.size()){
ot<<"\nKhong";
}
else{
int j=st1.size()-1;
for(int i=0;i<st1.size();i++){
if(st1[i]!=st2[j]){
ot<<"\nKhong";
return 0;
}
j--;
}
ot<<"\nCo";
}
//samon247
return 0;
}