#include using namespace std; using lint = long long; void solve() { lint k; cin >> k; cout << k * k * 4 + 2 << "\n"; } int main() { cin.tie(nullptr); ios::sync_with_stdio(false); solve(); return 0; }