- name: sample1
  in: |
    3
    1 2
  out: |
    2

- name: sample2
  in: |
    10
    1 2 3 4 5 6 7 8 9
  out: |
    9
