r=i=0 System.in.eachLine{it=~/\S/&&!r?r=(4*i?:5)..(i?22:17):i++ r&&println(it[r])}