sheet: 394 bytes: use top[i] to access the input elements, updated link