n = input() m = 10^n x= m//7 ret = x/m print(ret)