#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;
}