#include <iostream>
#include <algorithm>
#include <vector>
#include <utility>
using namespace std;
int main() {
vector<pair<int,int> > a = { {1,1} , {1,2}, {1,3}};
auto res = find_if(a.begin(), a.end(), [](pair<int,int> p){ return (p.first == 1 && p.second==3);});
cout<< (*res).first;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8YWxnb3JpdGhtPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8dXRpbGl0eT4KCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCXZlY3RvcjxwYWlyPGludCxpbnQ+ID4gYSA9IHsgezEsMX0gLCB7MSwyfSwgezEsM319OwoJCglhdXRvIHJlcyA9IGZpbmRfaWYoYS5iZWdpbigpLCBhLmVuZCgpLCBbXShwYWlyPGludCxpbnQ+IHApeyByZXR1cm4gKHAuZmlyc3QgPT0gMSAmJiBwLnNlY29uZD09Myk7fSk7Cgljb3V0PDwgKCpyZXMpLmZpcnN0OwoJcmV0dXJuIDA7Cn0=