[36B] lunlumo さんのをベースに
map{print"$_\n"if/^.0*$/}0..$ARGV[0]
<<
24/49
>>
First
Last