Divisible By 8 From Last Three Digits

Computer Mathematics Medium 2 views
Back to Questions

Problem Description

Given a decimal string s, decide if it represents a number divisible by 8.

Input Format

One line: string s (digits).

Output Format

YES or NO.

Sample Test Case

Input:
1000
Output:
YES

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next