#include using namespace std; int main(void) { int n; cin >> n; bool exist4 = 0, exist6 = 0; while (n > 0) { int num = n % 10; n /= 10; if (num == 4) exist4 = 1; else if (num == 6) exist6 = 1; if (exist4 && exist6) break; } cout << (exist4 && exist6 ? "Beautiful" : "...") << endl; return 0; }