Length of the sequence (#104) - Azerbaijan Computing Olympiad