https://www.acmicpc.net/problem/17825import sysinput = sys.stdin.readlinedice = list(map(int, input().split()))graph = [[1],[2],[3],[4],[5],[6,21],[7],[8],[9],[10],[11,25],[12],[13],[14],[15],[16,27],[17],[18],[19],[20],[32],[22], [23],[24],[30],[26],[24],[28],[29],[24],[31],[20],[32]]score = [0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,13,16,19,25,22,24,28,27,26,30,35,0]an..