Problem list
Log in
#r03348 · Online Judge > GoldOJ

Count Words

Bronze III 2.0 s 1024 MB

Given a line of words separated by single spaces, print the number of words.

Input

One line of length $1$ to $1000$; first and last characters are not spaces; spaces do not appear consecutively.

Output

Print the number of words.

Example 1

Input
one two three
Output
3
Source
Online Judge > GoldOJ
Appears in
Not part of a ladder, contest or set yet.
Accepted 0 Submissions 0 Acceptance 0% Solvers 0

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code