#include using namespace std; int main() { int n; cin >> n; bool f = false, s = false; while (n > 0) { if (n % 10 == 4) f = true; if (n % 10 == 6) s = true; n /= 10; } cout << (f && s ? "Beautiful\n" : "...\n"); }