Let \( n \) be a whole number such that \( n^2 + 14n + 49 = k \times m \), where \( k \) and \( m \) are positive perfect square integers. Find the smallest possible value of \( n \). Let's think step by step and output the final answer within \boxed{}.
user