# GolfScript, 61 bytes 1})_#;#;;00123358_(_};}_}_}} _}_(__6 _})4_)_+)__(__}__;_}___6 This takes advantage of comments (`#`) and the undocumented "super-comments" (everything following an unmatched `}` it is silently ignored). `_` is a noop. It could be replaced by whitespace, but the underscores seem more readable to me... [Try it online.](http://golfscript.apphb.com/?c=MTYseykiMX0pXyM7Izs7MDAxMjMzNThfKF99O31ffV99fSBffV8oX182Cl99KTRfKV8rKV9fKF9ffV9fO199X19fNiJcJS5%2BfSVuKg%3D%3D "Web GolfScript") # Example run $ cat nth-char.gs 16,{)"1})_#;#;;00123358_(_};}_}_}} _}_(__6 _})4_)_+)__(__}__;_}___6"\%.~}%n* $ golfscript nth-char.gs 1})_#;#;;00123358_(_};}_}_}} _}_(__6 _})4_)_+)__(__}__;_}___6 1 1)##;0238(}}}} }(_ }4)+_(__;}_6 2 1_#025(;}}}_ )))(};_6 3 1#;28}} ( 4+(_}6 4 1;05}_}64)__6 5 1#2(}} )(;6 6 1;3; 6)_} 7 1;8}(4(} 8 10(} ); 9 10}}4_6 10 11}_+_ 11 12} (6 12 13})_ 13 13 )} 14 15})6 15 18(( 16