Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- IsDividable = False
- if n % 8 == 0 or n % 5 == 0 or n % 3 == 0:
- IsDividable = True
- else:
- while n > 7:
- n -= 8
- if n % 5 == 0:
- IsDividable = True
- elif n % 3 == 0:
- IsDividable = True
- if IsDividable == True:
- print('YES')
- else:
- print('NO')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement