URAL 1493. One Step from Happiness

Vova bought a ticket in a tram of the 13th route and counted the sums of the first three and the last three digits of the ticket’s number (the number has six digits). It turned out that the sums differed by one exactly. "I’m one step from happiness," Vova thought, "either the previous or the next ticket is lucky." Is he right?

Input

The input contains the number of the ticket. The number consists of six digits, some of which can be zeros. It is guaranteed that Vova counted correctly, i.e., that the sum of the first three digits differs from the sum of the last three digits by one exactly.

Output

Output "Yes" if Vova is right and "No" otherwise.

Samples

inputoutput

715068Yes

445219No

012200Yes

Notes

All tram tickets have exactly six digits. A ticket is considered lucky if the sum of its first three digits equals the sum of its last three digits.

,捕捉最后的流星,坐在最高的山顶上,可以听音乐,聊电影,

URAL 1493. One Step from Happiness

相关文章:

你感兴趣的文章:

标签云: