#P10993. 【MX-J3-T0】 37

【MX-J3-T0】 37

Background

Original link: https://oier.team/problems/J3A

Problem Description

Input a natural number aa, and determine whether all digits of 37×a37\times a are equal.

Input Format

The input contains one line with one natural number aa.

Output Format

If all digits of 37a37a are equal, output Yes; otherwise output No.

6

Yes
33

No

Hint

Sample Explanation #1

37×6=22237\times 6 = 222, and its three digits are all 22, which meets the requirement.

Sample Explanation #2

37×33=122137\times 33 = 1221, and some digits are not equal (for example, the thousands digit and the hundreds digit), so it does not meet the requirement.

Constraints

This problem has 2020 test points, 55 points each.

It is guaranteed that 0a37370\le a \le 3737.

Translated by ChatGPT 5