#P133. 练22.2 欧耶欧耶
练22.2 欧耶欧耶
Description
Nick and Claire are playing a number game. If the number called by Claire is a common multiple of 3 and 5, Nick says "Yay Yay"; for other numbers, he remains silent.
Write a program that takes an integer as input and outputs "Yay Yay" if it is a common multiple of 3 and 5.
Input Format
A single line containing an integer.
Output Format
Output "Yay Yay" or nothing.
Sample
30Yay Yay
Related
In following homework: