#include <tuple>
#include <utility>
#include <iostream>
using namespace std;
int main()
{
int x1 = 10, x2=20, y1=132, y2=12, minx, miny, maxx, maxy;
tie(minx, maxx) = (x1 <= x2)? make_pair(x1, x2) : make_pair(x2, x1);
tie(miny, maxy) = (y1 <= y2)? make_pair(y1, y2) : make_pair(y2, y1);
cout<<"minx="<<minx<<"\n";
cout<<"maxx="<<maxx<<"\n";
cout<<"miny="<<miny<<"\n";
cout<<"maxy="<<maxy<<"\n";
}
I2luY2x1ZGUgPHR1cGxlPgojaW5jbHVkZSA8dXRpbGl0eT4KI2luY2x1ZGUgPGlvc3RyZWFtPgogCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiAKaW50IG1haW4oKQp7CiAgICBpbnQgeDEgPSAxMCwgeDI9MjAsIHkxPTEzMiwgeTI9MTIsIG1pbngsIG1pbnksIG1heHgsIG1heHk7CiAgICAKICAgIHRpZShtaW54LCBtYXh4KSA9ICh4MSA8PSB4Mik/IG1ha2VfcGFpcih4MSwgeDIpIDogbWFrZV9wYWlyKHgyLCB4MSk7CiAgICB0aWUobWlueSwgbWF4eSkgPSAoeTEgPD0geTIpPyBtYWtlX3BhaXIoeTEsIHkyKSA6IG1ha2VfcGFpcih5MiwgeTEpOwogICAgCiAgICBjb3V0PDwibWlueD0iPDxtaW54PDwiXG4iOwogICAgY291dDw8Im1heHg9Ijw8bWF4eDw8IlxuIjsKICAgIGNvdXQ8PCJtaW55PSI8PG1pbnk8PCJcbiI7CiAgICBjb3V0PDwibWF4eT0iPDxtYXh5PDwiXG4iOwp9