{"problem":{"name":"abc285_brutmhyhiizp","description":{"content":"In a parallel universe, AtCoder holds AtCoder Big Contest, where $10^{16}$ problems are given at once.   The IDs of the problems are as follows, from the $1$\\-st problem in order: `A`, `B`, ..., `Z`, ","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc285_c"},"statements":[{"statement_type":"Markdown","content":"In a parallel universe, AtCoder holds AtCoder Big Contest, where $10^{16}$ problems are given at once.  \nThe IDs of the problems are as follows, from the $1$\\-st problem in order: `A`, `B`, ..., `Z`, `AA`, `AB`, ..., `ZZ`, `AAA`, ...\nIn other words, the IDs are given in the following order:\n\n*   the strings of length $1$ consisting of uppercase English letters, in lexicographical order;\n*   the strings of length $2$ consisting of uppercase English letters, in lexicographical order;\n*   the strings of length $3$ consisting of uppercase English letters, in lexicographical order;\n*   $...$\n\nGiven a string $S$ that is an ID of a problem given in this contest, find the index of the problem. (See also Samples.)\n\n## Constraints\n\n*   $S$ is a valid ID of a problem given in AtCoder Big Contest.\n\n## Input\n\nThe input is given from Standard Input in the following format:\n\n$S$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc285_c","tags":[],"sample_group":[["AB","28\n\nThe problem whose ID is `AB` is the $28$\\-th problem of AtCoder Big Contest, so $28$ should be printed."],["C","3\n\nThe problem whose ID is `C` is the $3$\\-rd problem of AtCoder Big Contest, so $3$ should be printed."],["BRUTMHYHIIZP","10000000000000000\n\nThe problem whose ID is `BRUTMHYHIIZP` is the $10^{16}$\\-th (last) problem of AtCoder Big Contest, so $10^{16}$ should be printed as an integer."]],"created_at":"2026-03-03 11:01:13"}}