#pragma GCC optimize("Ofast") #include using namespace std; #define REP(i,n) for(int i=0;i<(n);i++) #define RREP(i,n) for(int i=(n-1);i>=0;i--) #define ALL(v) v.begin(),v.end() int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); string s;cin>>s; bool f=false,g=false; for(char p:s){ if(p=='4')f=true; if(p=='6')g=true; } if(f&&g)cout<<"Beautiful"<