{"problem":{"name":"Weird Function","description":{"content":"Let us define a function $f$ as $f(x) = x^2 + 2x + 3$.   Given an integer $t$, find $f(f(f(t)+t)+f(f(t)))$.   Here, it is guaranteed that the answer is an integer not greater than $2 \\times 10^9$.","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc234_a"},"statements":[{"statement_type":"Markdown","content":"Let us define a function $f$ as $f(x) = x^2 + 2x + 3$.  \nGiven an integer $t$, find $f(f(f(t)+t)+f(f(t)))$.  \nHere, it is guaranteed that the answer is an integer not greater than $2 \\times 10^9$.\n\n## Constraints\n\n*   $t$ is an integer between $0$ and $10$ (inclusive).\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$t$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc234_a","tags":[],"sample_group":[["0","1371\n\nThe answer is computed as follows.\n\n*   $f(t) = t^2 + 2t + 3 = 0 \\times 0 + 2 \\times 0 + 3 = 3$\n*   $f(t)+t = 3 + 0 = 3$\n*   $f(f(t)+t) = f(3) = 3 \\times 3 + 2 \\times 3 + 3 = 18$\n*   $f(f(t)) = f(3) = 18$\n*   $f(f(f(t)+t)+f(f(t))) = f(18+18) = f(36) = 36 \\times 36 + 2 \\times 36 + 3 = 1371$"],["3","722502"],["10","1111355571"]],"created_at":"2026-03-03 11:01:14"}}