#C7491. Counting Daily Running Increases

    ID: 51368 Type: Default 1000ms 256MiB

Counting Daily Running Increases

Counting Daily Running Increases

Tom tracks his running distances over a week, from Monday to Sunday. Your task is to determine the number of days on which his running distance increased compared to the previous day. Note that the comparison starts from Tuesday since Monday does not have a preceding day.

For example, given the distances [3, 4, 2, 5, 6, 3, 7], the result is 4 because the distance increased on 4 days.

inputFormat

The input consists of a single line with 7 space-separated integers. These integers correspond to the running distances for Monday through Sunday.

outputFormat

Output a single integer which is the number of days that show an increase in running distance compared to the previous day.

## sample
3 4 2 5 6 3 7
4