import java.util.Scanner;
public class pp {
public static void main(String[] argv) {
Scanner ar = new Scanner(System.in);
int j = 0;
boolean boo1 = false, boo2 = false;
while (ar.hasNextLine()) {// 讀取文件
String s = ar.nextLine();
for (int i = 0; i < s.length(); i++) {
if (s.charAt(i) >= 'a' & s.charAt(i) <= 'z'
|| s.charAt(i) >= 'A' & s.charAt(i) <= 'Z') {// 讀取Word第一個字
boo1 = true;
// System.out.println(s);
continue;
}
else // 讀取Word結尾
boo2 = true;
if (boo1 == true & boo2 == true) {
j += 1;// 計算Word數量
boo1 = false;
boo2 = false;
}
}
System.out.println(j);
j = 0;
}
}
}
我是一他是二?????????