UVA11385 Da Vinci Code

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=25&page=show_problem&problem=2380 [PDF](https://uva.onlinejudge.org/external/113/p11385.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11385/78f70d182ea892f333799a55ded0cf20969b9f56.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11385/5ae35e721b101573167e6a7bac0aa46cae2fd905.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11385/6047c914ebce986314c982c6cdbde5bacc5e0213.png)