import sys

print(len(input().split(" ")))