import strutils, sequtils var N = parseInt(readLine(stdin)) NN = 10 for i in 2..N : NN = NN*10 echo int(NN/7)/NN