Divide on three!#153

Divide on three!

1 second
128 megabytes
Very easy (≈850)

Two friends came to Vasyl with great news: they won in lottery n rubles. Since the lottery ticket was obtained as a short change during the overall purchase in the store, it was impossible to determine its owner. So it was decided to split the prize equally. Vasil wants to know whether its possible to divide the prize fairly.

Input

One positive integer n of no more than 255 digits.

Output

Print "YES" if the given number is divisible by 3, and "NO" otherwise.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading