#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

int main() {
	// your code goes here
	vector<uint8_t> ipNum = {100, 86, 168, 9};
	vector<uint8_t> startNum = {100, 86, 168, 9};
	vector<uint8_t> endNum = {100, 86, 168, 10};

	
	cout << std::lexicographical_compare(startNum.begin(), startNum.end(), ipNum.begin(), ipNum.end()) << endl;
    cout << std::lexicographical_compare(ipNum.begin(), ipNum.end(), endNum.begin(), endNum.end()) << endl;
	return 0;
}