#define _CRT_SECURE_NO_WARNINGS #include #include using namespace std; int main() { string c, c1; string res = "There is no result"; for (long i = 1; i <= 3; i++) { cin >> c; c1 = ""; for (long j = c.length()-1; j >= 0; j--) { c1 = c1 + c[j]; } if (c == c1) res = "S" + to_string(i); } cout << res; return 0; }