import java.util.*; import java.io.*; import java.math.*; public class No212 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int p = sc.nextInt(), c = sc.nextInt(); System.out.println(Math.pow(41.0/6.0, p) * Math.pow(49.0/6.0, c)); } }