#include using namespace std; int a,b,n,i; int main() { scanf("%d%d%d",&a,&b,&n); for (i=0; (1<