Bội Số Chung

PDF

Submit solution

Points: 10.00
Time limit: 1.0s
Memory limit: 64M
Input: stdin
Output: stdout

Authors:
Problem types
Allowed languages
C, C++, Java, Pascal, Python, Scratch, TEXT

Yêu cầu

Nhập vào 5 số nguyên ~a~, ~b~, ~c~, ~d~, ~e~. Kiểm tra xem có tồn tại số nào là bội chung của 4 số còn lại không?

Dữ liệu

Dòng duy nhất, gồm 5 số nguyên ~a~, ~b~, ~c~, ~d~, ~e~ ~(0 \le a, b, c, d, e \le 10^4)~.

Kết quả

Nếu tồn tại ít nhất 1 số thỏa yêu cầu, ghi Yes, ngược lại ghi No.

Input

2 3 4 60 5

Output

Yes

Comments

Please read the guidelines before commenting.


There are no comments at the moment.