import sequtils,strutils const N = 1e6.int var P : array[-7..N + 10,float64] s : array[1..6,float64] = [1 / 12, 1 / 6, 1 / 4, 1 / 12, 1 / 4, 1 / 6] T = stdin.readline.parseInt k : int ans : float64 for n in 0..