while 1: a,b=raw_input().split();m=0 for c in a: \x09m+=int(c) \x09if`m%10`==b[:1]:b=b[1:];m=0 print'YNEOS'[''<b+m%10*a::2]
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page