#259. array667

array667

Background

Description

Given an array of ints, return the number of times that two 6's are next to each other in the array. Also count instances where the second "6" is actually a 7.

Format

Input

Output

Samples

[6 6 2]
1
[6 6 2 6]
1
[6 7 2 6]
1

Limitation

1s, 1024KiB for each test case.