#!/usr/bin/env python3 # @author 轩辕龙儿 # @date 2022/10/26 # @file NP19.py def solution(): print(len(input().split())) if __name__ == "__main__": solution()