#!/usr/bin/env python
from __future__ import (absolute_import, division, print_function, unicode_literals)

s = raw_input("Enter a line: ")
print( "The number of words in the line are %d" % (len(s.split(" "))))
