#include using namespace std; int main() { string S; cin >> S; int N = S.size(); bool f4 = false, f6 = false; for (int i = 0; i < N; i++) { if (S[i] == '4') f4 = true; if (S[i] == '6') f6 = true; } if (f4 && f6) cout << "Beautiful" << endl; else cout << "..." << endl; }