{"problem":{"name":"Train","description":{"content":"There is an $N$\\-car train. You are given an integer $i$. Find the value of $j$ such that the following statement is true: \"the $i$\\-th car from the front of the train is the $j$\\-th car from the back","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc107_a"},"statements":[{"statement_type":"Markdown","content":"There is an $N$\\-car train.\nYou are given an integer $i$. Find the value of $j$ such that the following statement is true: \"the $i$\\-th car from the front of the train is the $j$\\-th car from the back.\"\n\n## Constraints\n\n*   $1 \\leq N \\leq 100$\n*   $1 \\leq i \\leq N$\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$N$ $i$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc107_a","tags":[],"sample_group":[["4 2","3\n\nThe second car from the front of a $4$\\-car train is the third car from the back."],["1 1","1"],["15 11","5"]],"created_at":"2026-03-03 11:01:13"}}