!> This file was processed by `fypp`. !> Today's fortune: "Happy TLE", really OK? !> ランダムウォーク猿「'bit全探索' で はっぴー.」 !> ギャンブラー猿「AtCoder は運だ.」 program f902894 use, intrinsic :: iso_fortran_env !> auto use module implicit none integer(int32) :: n character, allocatable :: cs(:) integer(int32) :: i read(input_unit, *) n allocate(cs(0:n)) read(input_unit, '(*(a1))') cs(1:n) cs(0) = "|" write(output_unit, '(i0)') count(cs(0:n-1) /= cs(1:n)) end program f902894