#include <bits/stdc++.h>
using namespace std;
using G=vector<vector<int>>;
typedef long long ll;
#define rep(i,l,r) for(int i=(l);i<(r);++i)

int main(){
	string s; cin>>s;
	bool flg=true;
	if(s.find('4')==string::npos) flg=false;
	if(s.find('6')==string::npos) flg=false;
	cout<<(flg?"Beautiful":"...")<<endl;
}