#感觉有更简单的办法,比如正则,还是用了字典 l = list(map(int ,input().split())) d = {1:0, 0:0} for i in l: d[i] += 1 print(d[0])