{"problem":{"name":"Mirrored","description":{"content":"For a positive integer $n$, we denote the integer obtained by reversing the decimal notation of $n$ (without leading zeroes) by $rev(n)$. For example, $rev(123) = 321$ and $rev(4000) = 4$. You are giv","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"arc075_d"},"statements":[{"statement_type":"Markdown","content":"For a positive integer $n$, we denote the integer obtained by reversing the decimal notation of $n$ (without leading zeroes) by $rev(n)$. For example, $rev(123) = 321$ and $rev(4000) = 4$.\nYou are given a positive integer $D$. How many positive integers $N$ satisfy $rev(N) = N + D$?\n\n## Constraints\n\n*   $D$ is an integer.\n*   $1 ≤ D < 10^9$\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$D$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"arc075_d","tags":[],"sample_group":[["63","2\n\nThere are two positive integers $N$ such that $rev(N) = N + 63$: $N = 18$ and $29$."],["75","0\n\nThere are no positive integers $N$ such that $rev(N) = N + 75$."],["864197532","1920"]],"created_at":"2026-03-03 11:01:13"}}