CodeChef PESU ECC Chapter
00:00Log in

Divisible by 6

Easy1s limit256 MB

Given an integer n, determine whether it is divisible by 6. Print YES if n is divisible by 6; otherwise, print NO.

A number is divisible by 6 if dividing it by 6 leaves no remainder.

Output Format

Print YES if n is divisible by 6. Otherwise, print NO.

Sample 1

Input
12
Output
YES

Explanation

12 divided by 6 equals 2 with no remainder, so it is divisible by 6.

Sample 2

Input
13
Output
NO

Explanation

13 divided by 6 leaves a remainder of 1, so it is not divisible by 6.

Code
Loading editor…
Auto-savedC++
Case 1using sample

Run uses this input. Submit always judges the hidden tests.