import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String n = sc.nextLine(); int flg4 = 0; int flg6 = 0; for(int i = 0; i < n.length(); i++) { String tmp = String.valueOf(n.charAt(i)); if(tmp.equals("4")) { flg4 += 1; } if(tmp.equals("6")) { flg6 += 1; } } if(flg4 > 0 && flg6 > 0) { System.out.println("Beautiful"); }else { System.out.println("..."); } } }