func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n;     cin >> n;     int key;     vector<int> v;     for (int i = 0; i < n; ++i) {       cin >> key;       v.push_back(key);     }     int max = v[0];     int min = v[0];     int amz = 0;     for (int i = 1; i < n; ++i) {       if (v[i] > max) {         amz++;         max = v[i];       }       if (v[i] < min) {         amz++;         min = v[i];       }     }     cout << amz;   }   