Find the minimum value of
\[\frac{\sin^6 x + \cos^6 x + 1}{\sin^4 x + \cos^4 x + 1}\]over all real values $x.$The answer is in the form rac{m}{n}, where gcd(m, n) = 1. Please provide the value of m + n.

Let's think step by step and output the final answer within \boxed{}.
user