P,C = map(int,raw_input().split()) print (41./6)**P*(49./6)**C