#include using namespace std; int main(){ int px, py, qx, qy, rx, ry; cin >> px >> py >> qx >> qy >> rx >> ry; auto check = [&](int x){ assert(0 <= x && x <= 100); }; check(px); check(py); check(qx); check(qy); check(rx); check(ry); vector> ans; for(int i = -3000; i <= 3000; i++){ for(int j = -3000; j <= 3000; j++){ double x = i / 2.0, y = j / 2.0; double d1 = abs(px - x) + abs(py - y), d2 = abs(qx - x) + abs(qy - y), d3 = abs(rx - x) + abs(ry - y); if(d1 == d2 && d2 == d3){ ans.emplace_back(x, y); } } } if(ans.size() >= 2){ cout << -1 << endl; return 0; } cout << ans.size() << endl; for(auto [x, y] : ans){ cout << x << " " << y << endl; } }