#include <iostream> #include <vector> using namespace std; int find_missing(vector<int>& nums) { int left = 0, right = nums.size() - 1; while (left < right) { int mid = left + (right - left) / 2; if (nums[mid] == mid + __(1)__ ) { __(2)__ ; } else { __(3)__ ; } } return __(4)__ ; } int main() { int n; cin >> n; vector<int> nums(n); for(int i = 0; i < n; i++)cin >> nums[i]; int missing_number = find_missing(nums); if (missing_number == __(5)__) { cout << "Sequence is consecutive" << endl; } else { cout << "Missing number is " << missing_number << endl; } return 0; }