UVA968 Constellations

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=11&page=show_problem&problem=909 [PDF](https://uva.onlinejudge.org/external/9/p968.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA968/f9a728121824ede6bc3a5ef467a4c6d467b28fa5.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA968/424acc2b77112885ddedb9e7cce5d56f192c3436.png)

Output Format

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