using System;
class Program
{
public static void Main()
{
double e = 1.0, i, ii, j, m, n, p, r, s = 0.0;
Console.Write("n m: ");
var line = Console.ReadLine().Split(" ");
n = double.Parse(line[0]);
m = double.Parse(line[1]);
for (i = e; i <= n; i += e)
{
p = 1.0;
ii = i * i;
r = 4.0 * ii;
for (j = e; j <= m; j += e) p /= j * j + r;
s += p * Math.Pow(4.0 + ii, m);
}
Console.WriteLine(s);
}
}