N = int(input()) ten = pow(10, min(N, 100)) print(ten//7/ten)