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