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