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