$n=<>;$s="1"."3"x$n;print$s%(1e9+7)