{"raw_statement":[{"iden":"problem statement","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$."},{"iden":"constraints","content":"*   $t$ is an integer between $0$ and $10$ (inclusive)."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$t$"},{"iden":"sample input 1","content":"0"},{"iden":"sample output 1","content":"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$"},{"iden":"sample input 2","content":"3"},{"iden":"sample output 2","content":"722502"},{"iden":"sample input 3","content":"10"},{"iden":"sample output 3","content":"1111355571"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}