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

- name: sample2
  in: |
    3
    2 7 4
  out: |
    5

- name: sample3
  in: |
    4
    20 18 2 18
  out: |
    18
