while~0:s="Qpp"+input();print(+(sum(max(s.count(c)-2,0)for c in"pQRBN")<9))
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page