C=int(input().split()) z_counter=0 for i in len(C): if C[i]==0: z_counter+=1 print(len(C)-z_counter)