Module: (Java) Workshop-2 "Chess and chess players". Conditional operator


Problem

3 /13


Free time

Problem

In their free time, chess players, in addition to playing football, tennis and other outdoor games, practice verbal counting. They call a three-digit number, the product of the digits of which is also a three-digit number.
Write a program that, according to the entered three-digit number, would output YES if the product of its digits is a three-digit number, otherwise it is necessary to output NO

Example 1
Input
111
Output
NO

Example 2
Input
999
Output
YES