import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int P = sc.nextInt(); double a = (2+3+5+7+11+13)/6.0; int C = sc.nextInt(); double b = (4+6+8+9+10+12)/6.0; double r = Math.pow(a,P) * Math.pow(b,C); System.out.println(r); } }