#include #include using namespace std; int main(){ string s; char c1, c2; bool prva; while(!cin.eof()){ cin>>s>>c1>>c2; if(cin.eof()){ break; } if(c1 == c2){ if(c1 != '0'){ cout<