import algorithm, tables, sets, lists, intsets, critbits, sequtils, strutils, math, future var N, K:float ans:float (N, K) = stdin.readLine.split.map(parseFloat) for i in 0..N.int: ans += i.toFloat * K echo ans / ((N + 1.0) * K)