import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines P,C = map(int,read().split()) x = 41 / 6 y = 49 / 6 answer = (x**P) * (y**C) print(answer)