x = input().split()#先用split分隔成列表
print(len(x))#在用len计算列表长度