K = gets.to_i L = 2 * K + 1 M = 2 * K - 1 p (L**2 + 1) / 2 + (M**2 + 1) / 2