function! s:main(input) abort return a:input[0] == 0 ? 1 : 0 endfunction let s:input = getline(1, '$') enew put =s:main(s:input) 2,$print