#include <iostream>int main (){ int s = 0; for (int i = 0; i < 4; ++i) s ^= std::cin.get (); std::cout << s % 2 << "\n";}
#include <iostream>#include <iterator>#include <numeric>int main (){ return std::accumulate (std::istream_iterator <char> (std::cin), std::istream_iterator<char> (), 0) & 1;}
#include <cstdio>int main (){ puts ((getchar () ^ getchar () ^ getchar () ^ getchar ()) & 1 ? "different" : "same");}