from typing import Iterator, Optional
from util import *


def solve(input: Optional[str]) -> Iterator[any]:
    depths = [int(depth) for depth in input.split("\n")]
    yield sum(depths[i + 1] > depths[i] for i in range(len(depths) - 1))
    yield sum(depths[i + 3] > depths[i] for i in range(len(depths) - 3))

be9f946789e0a9fe1bfa20e6e7f86a1923baac9c
<mask token>

<mask token>


def solve(input: Optional[str]) ->Iterator[any]:
    depths = [int(depth) for depth in input.split('\n')]
    yield sum(depths[i + 1] > depths[i] for i in range(len(depths) - 1))
    yield sum(depths[i + 3] > depths[i] for i in range(len(depths) - 3))

from typing import Iterator, Optional
from util import *


def solve(input: Optional[str]) ->Iterator[any]:
    depths = [int(depth) for depth in input.split('\n')]
    yield sum(depths[i + 1] > depths[i] for i in range(len(depths) - 1))
    yield sum(depths[i + 3] > depths[i] for i in range(len(depths) - 3))

from typing import Iterator, Optional
from util import *


def solve(input: Optional[str]) -> Iterator[any]:
    depths = [int(depth) for depth in input.split("\n")]
    yield sum(depths[i + 1] > depths[i] for i in range(len(depths) - 1))
    yield sum(depths[i + 3] > depths[i] for i in range(len(depths) - 3))
