#include <algorithm>
#include <iostream>
#include <vector>
int main()
{
std::vector<int> a = { 1, 2, 3 };
std::vector<int> b = { 4, 5, 6 };
int max = std::max(*std::max_element(a.begin(), a.end()), *std::max_element(b.begin(), b.end()));
std::cout << max;
}
I2luY2x1ZGUgPGFsZ29yaXRobT4KI2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgoKCmludCBtYWluKCkKewogICAgc3RkOjp2ZWN0b3I8aW50PiBhID0geyAxLCAyLCAzIH07CiAgICBzdGQ6OnZlY3RvcjxpbnQ+IGIgPSB7IDQsIDUsIDYgfTsKICAgIAogICAgaW50IG1heCA9IHN0ZDo6bWF4KCpzdGQ6Om1heF9lbGVtZW50KGEuYmVnaW4oKSwgYS5lbmQoKSksICpzdGQ6Om1heF9lbGVtZW50KGIuYmVnaW4oKSwgYi5lbmQoKSkpOwogICAgc3RkOjpjb3V0IDw8IG1heDsKfQ==