n = input()
l = list(n.strip().split())
print(len(l))