#include "bits/stdc++.h" #define int long long using namespace std; using ll = long long; using P = pair; const ll INF = (1LL << 61); ll mod = 1000000007; signed main() { ios::sync_with_stdio(false); cin.tie(0); string N; cin >> N; bool ok = false, ok2 = false; for (int i = 0; i < (int)N.size(); i++) { if (N[i] == '4')ok = true; if (N[i] == '6')ok2 = true; } if (ok && ok2)cout << "Beautiful" << endl; else cout << "..." << endl; return 0; }