import strutils,sequtils proc input():string=stdin.readLine let li=input().split.map(parseInt) n=li[0] k=li[1] down=float((n+1)*k) var e=0.float for i in 0..n: e+=float(i*k)/down echo e