#coding:utf-8 W=input() D=input() for i in range(1,D+1)[::-1]: if i != 1: W-=(W/(pow(i,2))) else: break print W