#include<bits/stdc++.h>
using namespace std;
int main(){
vector<int> members;
int n,m,k;
int currentBang = 0;
int bombIndex = 0;
cin >> n >> m >> k;
for(int i=0; i<n ; i++){
members.push_back(i+1);
}
while( currentBang < k ){
bombIndex += m-1;
bombIndex = bombIndex%(members.size());
members.erase(members.begin()+bombIndex);
currentBang++;
}
bombIndex = bombIndex%(members.size());
cout<<members[bombIndex]<<endl;
}