#include #include #include #include #include using namespace std; int main() { int n; cin >> n; int bit = 0; while (n > 0) { if (n % 10 == 4) bit |= 1; if (n % 10 == 6) bit |= 2; n /= 10; } cout << (bit == 3 ? "Beautiful" : "...") << endl; return 0; }