Lucky Digits


Submit solution

Points: 100
Time limit: 1.0s
Memory limit: 256M

Author:
Problem types

Determine whether every decimal digit of \(n\) belongs to \({0,6,8}\).

Input

One line containing \(n\).

The input satisfies:

  • \(0 \le n \le 10^18\)

Output

Print 1 if every digit is allowed; otherwise, print 0.

Example

Input
0
Output
1

Comments

There are no comments at the moment.