def jumpingOnClouds(c):
    ans, i = 0, 0
    n = len(c)
    while i < n - 1:
        if i + 2 >= n or c[i + 2] == 1:   # Not possible to make a jump of size 2
            i = i + 1
            ans = ans + 1
        else:
            i = i + 2
            ans = ans + 1
    return ans