import sequtils,strutils var M,N : int A : float64 (M, N) = stdin.readline.split.map(parseInt) A = M.float64 for n in 1..N: var a : float64 = A * 2 / 3 b : float64 = (A + 1) / 3 A = a + b echo A