($n,$d,$k)=glob<>;grep(!s/.*\K1/1/,($_=1x$n^3x$k)x($d-$k++*$k/2&8191))|/3/?print-1:s//print@+,$"/ge