{"raw_statement":[{"iden":"statement","content":"You consider a number to be a _pleasing number_ if it contains no prime factors other than 2 and 3. For example, 1, 4, 12, 18, and 81 are pleasing numbers, while 7, 28, 210, and 30 are not pleasing numbers.\n\nGiven a number, figure out whether or not it is a _pleasing number_.\n\nThe only line of input consists of a single positive integer $n$ less than or equal to 1000.\n\nIf $n$ is a pleasing number, as described above, output \"YES\" (no quotes). Otherwise, output \"NO\" (no quotes).\n\n"},{"iden":"input","content":"The only line of input consists of a single positive integer $n$ less than or equal to 1000."},{"iden":"output","content":"If $n$ is a pleasing number, as described above, output \"YES\" (no quotes). Otherwise, output \"NO\" (no quotes)."},{"iden":"examples","content":"Input18\nOutputYES\nInput35\nOutputNO\n"}],"translated_statement":null,"sample_group":[],"show_order":[],"formal_statement":"**Definitions**  \nLet $ n \\in \\mathbb{Z}^+ $, $ n \\leq 1000 $.\n\n**Constraints**  \n$ n \\geq 1 $\n\n**Objective**  \nDetermine whether all prime factors of $ n $ are in $ \\{2, 3\\} $.  \nThat is, $ n $ is a pleasing number if and only if $ n = 2^a \\cdot 3^b $ for some $ a, b \\in \\mathbb{N}_0 $.","simple_statement":"Given a positive integer n ≤ 1000, check if it has only 2 and 3 as prime factors. If yes, print \"YES\", otherwise print \"NO\".","has_page_source":false}