1133: 单词个数统计
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);String str=cin.nextLine();int ans=0;if(str.charAt(0)!=' ') ans=1;for(int i=1;i<str.length();i++)if(str.charAt(i-1)==' '&&str.charAt(i)!=' ')ans++;System.out.println(ans);}
}