user_words = input() total_words = user_words.count(" ") + 1 print(total_words)