#include #define rep(i,n) for(int i = 0; i < n; i++) #define srep(i,a,b) for(int i = a; i < b; i++) #define all(A) (A).begin(),A.end() #define MOD 1000000007 using namespace std; using ll = long long; using P = pair; using Graph = vector>; bool judge(int x){ bool ok4 = 0,ok6 = 0; while(x){ if(x%10 == 4) ok4 = 1; else if(x%10 == 6) ok6 = 1; x /= 10; } return (ok4 && ok6); } int main(void){ int n; cin >> n; cout << (judge(n) ? "Beautiful" : "..."); }