A string S made only of digits and commas is given. Count the integers in S.
An integer is a run of one or more consecutive digits in S. 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.
The first line contains the string S. It is made only of digits and commas, and its length is at least 1 and at most 100.
Print the number of integers in S on one line.