def main(): N = int(input()) all_num = 10 ** N seven = all_num // 7 print(seven / all_num) if __name__ == "__main__": main()