#define _GLIBCXX_DEBUG #define ll long long #include using namespace std; using Graph = vector>; int main(){ int N; cin >> N; bool F4 = false, F6 = false; while(N>0){ int n = N%10; if(n == 4) F4 = true; if(n == 6) F6 = true; N /= 10; } if(F4 and F6) cout << "Beautiful" << endl; else cout << "..." << endl; }