Comma Integer Count

No attempts yetTime limit1sMemory limit256 MB

Problem

A string SS made only of digits and commas is given. Count the integers in SS.

An integer is a run of one or more consecutive digits in SS. A place between two commas that holds no digit is not counted. For the string 1,,23 the integers are 1 and 23, so the answer is 2. For the string ,,, the answer is 0.

Input

The first line contains the string SS. It is made only of digits and commas, and its length is at least 1 and at most 100.

Output

Print the number of integers in SS on one line.