get;say +grep {.[1]>=$!&&($!=.sum)},[Z] lines>>.words