#include<iostream>
#include<string>

using namespace std;

int main(){
    string S;
    cin >> S;

    bool a=(S.find("4")!=string::npos);
    bool b=(S.find("6")!=string::npos);

    if (a && b){
        cout << "Beautiful" << endl;
    }else{
        cout << "..." << endl;
    }
}