name = list(input().split(" "))
print(name.__len__())