import java.util.Scanner; public class No212 { public static void main(String[] args) { Scanner s = new Scanner(System.in); int p = s.nextInt(); int c = s.nextInt(); double a = 41 / 6.0; double b = 49 / 6.0; System.out.println(Math.pow(a, p) * Math.pow(b, c)); } }