electicode
HomeCoursesResourcesProblemsNational OlympiadContestsLeaderboard
...

A four-digit odd number

Time Limit: 1000msMemory Limit: 256MB
View Submissions

Problem Description

Print "YES" if the natural integer NNN is a four-digit odd number that is divisible by 3 and 5; "NO" otherwise.

Input Format

The input consists of a natural integer NNN (1≤A≤109)(1 \le A \le 10^9)(1≤A≤109).

Output Format

Enter the answer to the problem.

Examples

Example 1
Input
1875
Output
YES
Example 2
Input
1500
Output
NO
Example 3
Input
15
Output
NO

© 2026 Electicode. All rights reserved.