import java.util.*; import java.text.DecimalFormat; public class Exercise109{ public static void main (String[] args){ Scanner sc = new Scanner(System.in); DecimalFormat df = new DecimalFormat("#.##########"); double p = sc.nextDouble(); double c = sc.nextDouble(); double sumP = Math.pow(41, p); double sumC = Math.pow(49, c); System.out.println(df.format(sumP * sumC / Math.pow(6, p + c))); } }