a_list = list(input().split())  # 将字符串生成列表
j = 0
for i in a_list:
    j = j + 1
print(j)