#include <algorithm>
#include <tuple>
#include <iostream>
using namespace std;
int main()
{
int x[] = { 10, 20 }, y[] = { 132, 12 }, *minx, *miny, *maxx, *maxy;
tie(minx, maxx) = minmax_element(begin(x), end(x));
tie(miny, maxy) = minmax_element(begin(y), end(y));
cout<<"minx="<<*minx<<"\n";
cout<<"maxx="<<*maxx<<"\n";
cout<<"miny="<<*miny<<"\n";
cout<<"maxy="<<*maxy<<"\n";
}
I2luY2x1ZGUgPGFsZ29yaXRobT4KI2luY2x1ZGUgPHR1cGxlPgojaW5jbHVkZSA8aW9zdHJlYW0+CiAKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKIAppbnQgbWFpbigpCnsKICAgIGludCB4W10gPSB7IDEwLCAyMCB9LCB5W10gPSB7IDEzMiwgMTIgfSwgKm1pbngsICptaW55LCAqbWF4eCwgKm1heHk7CiAgICAKICAgIHRpZShtaW54LCBtYXh4KSA9IG1pbm1heF9lbGVtZW50KGJlZ2luKHgpLCBlbmQoeCkpOwogICAgdGllKG1pbnksIG1heHkpID0gbWlubWF4X2VsZW1lbnQoYmVnaW4oeSksIGVuZCh5KSk7CiAgICAKICAgIGNvdXQ8PCJtaW54PSI8PCptaW54PDwiXG4iOwogICAgY291dDw8Im1heHg9Ijw8Km1heHg8PCJcbiI7CiAgICBjb3V0PDwibWlueT0iPDwqbWlueTw8IlxuIjsKICAgIGNvdXQ8PCJtYXh5PSI8PCptYXh5PDwiXG4iOwp9