#!/usr/bin/env python3 #coding:utf-8 import math import string import random import heapq from sys import stdin # import numpy as np # from matplotlib import pyplot as plt def main(): read=stdin.readline #edit here! x=int(read()) ans=0 for i in range(2,1000000): res=0 res+=math.pow(i,1-x) res/=i-1 ans+=res ans*=1000000 ans=int(ans) print(ans) if __name__ == '__main__': main()