output_description: Print "Yes" if given dices are all different, otherwise "No" in a line.
input_description: In the first line, the number of dices $n$ is given. In the following $n$
  lines, six integers assigned to the dice faces are given respectively in the
  same way as Dice III.
attempt: import math
  
  a, b, C = map(float, input().split())
  C_rad = math.pi * C / 180
  print("{0:.8f}".format(math.sin(C_rad) * a * b / 2))
  print("{0:.8f}".format(a + b + math.sqrt(a**2 + b**2 - 2 * a * b * math.cos(C_rad))))
  print("{0:.8f}".format(b * math.sin(C_rad)))
  
problem_description: Dice IV
  
    
  
  Write a program which reads $n$ dices constructed in the same way as Dice I,
  and determines whether they are all different. For the determination, use the
  same way as Dice III.
samples: [{"input": "3\n    1 2 3 4 5 6\n    6 2 4 3 5 1\n    6 5 4 3 2 1", "output": "No"}, {"input": "3\n    1 2 3 4 5 6\n    6 5 4 3 2 1\n    5 4 3 2 1 6", "output": "Yes"}]