def two_adjacent_digits_same(number: int) -> bool:
    """Two adjacent digits are the same (like 22 in 122345)."""
    previous = None
    for digit in str(number):
        if digit == previous:
            return True
        previous = digit
    return False