B. Weird Rounding time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Polycarp is crazy about round numbers. He especially likes the numbers divisible by 10k. In the given number of n Polycarp…