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