1756 11的倍数


Submit solution

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

Problem types
Allowed languages
C, C++, Java, Python

Description

一个大数,希望判断其是否是11的倍数。

Input

一些大数,大的多达1000位数。

Output

对于每个数,若为11的倍数,请输出Yes,否则输出No。每个结果占一行。

Sample

Input

12
1001

Output

No
Yes

Hint

1%11=1,10%11=-1,100%11=1,…,似乎11的倍数与数的奇偶位有关。


Source: qianneng


Comments

There are no comments at the moment.