put (($_=(get,{$_%2??$_*3+1!!$_/2}...1))-1,.max)