#include #define rep(i,a,n) for(int i=a;i=b;i--) #define all(a) a.begin(),a.end() #define o(a) cout< vi; typedef vector vvi; typedef pair pii; signed main(){ int f[3]; int n; cin>>f[0]>>f[1]>>n; f[2]=f[0]^f[1]; cout<