#include <iostream>
using namespace std;
int main() {
int x1, x2, x3, y1, y2, y3;
cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
if ((x2-x1)*(x3-x1)+(y2-y1)*(y3-y1)==0)
{
cout << x2+x3-x1 << " " << y2+y3-y1;
}
else if ((x2-x1)*(x3-x2)+(y2-y1)*(y3-y2)==0)
{
cout << x1+x3-x2 << " " << y1+y3-y2;
}
else if ((x3-x1)*(x3-x2)+(y3-y1)*(y3-y2)==0)
{
cout << x1+x2-x3 << " " << y1+y2-y3;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgeDEsIHgyLCB4MywgeTEsIHkyLCB5MzsKCWNpbiAgPj4geDEgPj4geTEgPj4geDIgPj4geTIgPj4geDMgPj4geTM7CglpZiAoKHgyLXgxKSooeDMteDEpKyh5Mi15MSkqKHkzLXkxKT09MCkKCXsKCQljb3V0IDw8IHgyK3gzLXgxIDw8ICIgIiA8PCB5Mit5My15MTsKCX0KCWVsc2UgaWYgKCh4Mi14MSkqKHgzLXgyKSsoeTIteTEpKih5My15Mik9PTApCgl7CgkJY291dCA8PCB4MSt4My14MiA8PCAiICIgPDwgeTEreTMteTI7Cgl9CgllbHNlIGlmICgoeDMteDEpKih4My14MikrKHkzLXkxKSooeTMteTIpPT0wKQoJewoJCWNvdXQgPDwgeDEreDIteDMgPDwgIiAiIDw8IHkxK3kyLXkzOwoJfQkKCXJldHVybiAwOwp9