SP10240 ACPC11C - Circleland

Description

You are visiting circleland, and you have long waited to visit their famous art exhibition.

Input Format

N/A

Output Format

For each test case, output, on a single line, a single number representing the minimum total distance you have to walk in corridors such that you visit all rooms.