import java.util.Scanner; public class Yuki212{ public static void main(String[] arg){ Scanner sc = new Scanner(System.in); double p,c,pe,ce,res; p = sc.nextDouble(); c = sc.nextDouble(); pe = (double)(2+3+5+7+11+13)/(double)6; ce = (double)(4+6+8+9+10+12)/(double)6; res = (Math.pow(pe,p))*(Math.pow(ce,c)); System.out.println(res); } }