UVA10922 2 the 9s

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=21&page=show_problem&problem=1863 [PDF](https://uva.onlinejudge.org/external/109/p10922.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10922/a3837fa2619104f1a2fb390d7ef727fa66ec92c5.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10922/8b8a1602fae301abdc4f553843c345e6267dcfb5.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10922/b57ceeb955124f673be322987fefc08bb0f76ef0.png)