func main() var pos: [][]int :: #[3, 2]int for i(0, 2) do pos[i] :: [cui@inputInt(), cui@inputInt()] end for for i(0, 2) if(i <> 0) do swap(&pos[i], &pos[0]) end if if((pos[1][0] - pos[0][0]) * (pos[2][0] - pos[0][0]) + (pos[1][1] - pos[0][1]) * (pos[2][1] - pos[0][1]) = 0) if((pos[1][0] - pos[0][0]) ^ 2 + (pos[1][1] - pos[0][1]) ^ 2 = (pos[2][0] - pos[0][0]) ^ 2 + (pos[2][1] - pos[0][1]) ^ 2) do cui@print("\{pos[2][0] + pos[1][0] - pos[0][0]} \{pos[2][1] + pos[1][1] - pos[0][1]}\n") ret end if end if end for do cui@print("-1\n") func swap(a: &[]int, b: &[]int) var t: []int :: ##a do a :: ##b do b :: ##t end func end func