{"problem":{"name":"Comma","description":{"content":"When Takahashi writes an integer, he uses a comma every third digit from the right. For example, $1234567$ is written as `1,234,567`, and $777$ is written as `777`. How many commas will be used in tot","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc195_c"},"statements":[{"statement_type":"Markdown","content":"When Takahashi writes an integer, he uses a comma every third digit from the right. For example, $1234567$ is written as `1,234,567`, and $777$ is written as `777`.\nHow many commas will be used in total when he writes each integer from $1$ through $N$ once?\n\n## Constraints\n\n*   $1 \\leq N \\leq 10^{15}$\n*   $N$ is an integer.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$N$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc195_c","tags":[],"sample_group":[["1010","11\n\nNo comma is used in writing $999$ or smaller numbers. One comma is used in writing each of the numbers from $1000$ through $1010$.\nThus, $11$ commas are used in total."],["27182818284590","107730272137364"]],"created_at":"2026-03-03 11:01:14"}}