1931: Find the number in the string
内存限制:128 MB
时间限制:1.000 S
评测方式:文本比较
命题人:
提交:47
解决:37
题目描述
Given a string containing numbers and letters, determine whether the number formed by the string of numeric characters can be divisible by 3. For example: the string a1b2c3d, the number composed of numeric characters in the string is 123, which can be divisible by 3.
输入
There are several lines of input, and each line contains a string of letters and numbers (the length of the string is less than 50, and the string contains only letters and numbers, without other characters).
输出
Divisible by 3, output "Yes", and output "No" if it can't.
样例输入 复制
a1b2c3d
kste1245dede09ssd111111336
111ba1
样例输出 复制
Yes
Yes
No