String #2

View as PDF



Problem type
Points: 10 (p) Time limit: 1.0s Memory limit: 256M Input: stdin Output: stdout

Nhập xâu \(S\). Đếm số từ trong xâu \(S\).

Input

  • Nhập xâu \(S\) (tổng số ký tự không vượt quá \(10^5\)).

Output

  • In ra số lượng từ trong xâu \(S\).

Example

Test 1
Input
code dream
Output
2

Comments

There are no comments at the moment.