{"raw_statement":[{"iden":"background","content":"对应的选择、判断题：<https://ti.luogu.com.cn/problemset/1190>"},{"iden":"statement","content":"如果一个正整数在十进制下的所有数位都相同，小 A 就会觉得这个正整数很优美。例如，正整数 $6$ 的数位都是 $6$，所以 $6$ 是优美的。正整数 $99$ 的数位都是 $9$，所以 $99$ 是优美的。正整数 $123$ 的数位不都相同，所以 $123$ 并不优美。\n\n小 A 想知道不超过 $n$ 的正整数中有多少优美的数字。你能帮他数一数吗？"},{"iden":"input","content":"一行，一个正整数 $n$。"},{"iden":"output","content":"一行，一个正整数，表示不超过 $n$ 的优美正整数的数量。"},{"iden":"note","content":"对于所有测试点，保证 $1 \\leq n \\leq 2025$。"}],"translated_statement":null,"sample_group":[["6","6"],["2025","28"]],"show_order":[],"formal_statement":null,"simple_statement":null,"has_page_source":false}