@juanvincent
-- lua l1,l2,x,y = io.read(),io.read(),0,0 for i in string.gmatch(l2, "%S+") do i = tonumber(i) y = i > x and 0 or y x = i > x and i o...