print('Yes' if sum(map(int, input())) % 3 == 0 else 'No')
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
print('Yes' if sum(map(int, input())) % 3 == 0 else 'No')