Vasya big fish lover parent give aquarium New Year Vasya degree ichthyology think fill new aquarium eel good idea unfortunately eel predator Vasya decide find dangerous idea wasgetting aquarium eel fight exactly fish remain when eel fight big eat small weight equal eat namely let n eel initially aquarium ith weight x_i then n1 battle occur result eel survive in battle eel weight b le b eel weight eaten disappear aquarium eel weight b increase weight aba battle eel weight b le b consider dangerous b le 2 for give set eel danger define maximum number dangerous battle occur eel place aquariumNow Vasya planning eel want aquarium he set eel initially he make series operation set with operation add eel set remove eel set Vasya ask calculate danger current set eel operation