Sum of squares (#75) - Azerbaijan Computing Olympiad