#include using namespace std; int n; bool f = 0, g = 0; int main() { cin >> n; while (n > 0) { if (n % 10 == 4) f = 1; else if (n % 10 == 6) g = 1; n /= 10; } if (f && g) cout << "Beautiful" << endl; else cout << "..." << endl; }