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