UVa 545 - Heads

As like as uva 474.

See this : http://www.algorithmist.com/index.php/UVa_474

Ignore the Notes portion of 474. That means : if n==6 output should be 2^-6 = 1.563e-2