func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n, a, b;     cin >> n >> a >> b;     if (b) b = (b / abs(b)) * (abs(b) % n);     if (!b) {       cout << a;       return 0;     }     if (b > 0) {       int i, cnt = 0;       for (i = a; cnt != b; (i != n) ? (i++) : i = 1) {         cnt++;       }       cout << i;       return 0;     }     if (b < 0) {       b = abs(b);       int i, cnt = 0;       for (i = a; cnt != b; (i != 1) ? (i--) : i = n) {         cnt++;       }       cout << i;       return 0;     }   }   