/* -*- coding: utf-8 -*- * * 1721.cc: No.1721 [Cherry 3rd Tune N] 麗しきNumber - yukicoder */ #include #include using namespace std; /* constant */ /* typedef */ /* global variables */ /* subroutines */ /* main */ int main() { int n; scanf("%d", &n); bool f4 = false, f6 = false; while (n > 0) { int d = n % 10; if (d == 4) f4 = true; else if (d == 6) f6 = true; n /= 10; } if (f4 && f6) puts("Beautiful"); else puts("..."); return 0; }