1. You are given a binary string which represents a number. 2. You have to check whether this number is divisible by 3 or not. 3. Print 'true' if it is divisible by 3, otherwise print 'false'.
Input Format
A binary string
Output Format
true or false
Constraints
1 <= length of binary string <= 10000
Notice
Try First, Check Solution later
1. You should first read the question and watch the question video.2. Think of a solution approach, then try and submit the question on editor tab.3. We strongly advise you to watch the solution video for prescribed approach.Example
Input
10010101010001
Output
false