#include using namespace std; #include using namespace atcoder; #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using P = pair; int main() { string n; cin >> n; bool has4 = false, has6 = false; for (char c : n) { if (c == '4') has4 = true; else if (c == '6') has6 = true; } if (has4 && has6) cout << "Beautiful" << endl; else cout << "..." << endl; return 0; }