#include <iostream>
#include <string>
#include <algorithm>

using namespace std;

int main() {
    string s;
    //cin >> s;
    s = "ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp";
    const uint64_t MOD = 1e17, p = 31;
    uint64_t p_pow = 1,
              hash = 0, reverse_hash = 0;
    bool facepalm = false;
    for (size_t i = 0; i < s.size(); i++) {
        hash = (hash + s[i] * (p_pow % MOD)) % MOD;
        reverse_hash = (reverse_hash * p + s[i]) % MOD;
        cout << (hash == reverse_hash ? "Yes\n" : "No\n");
        if (hash != reverse_hash) facepalm = true;
        p_pow = p_pow * p % MOD;
    }
    if (facepalm) cout << "Facepalm";
    else cout << "All good!";
}