#include <stdio.h>
#include <stdlib.h>

int main(void){
    double a,b,n;
    int result = 0;
    int tmp2 = 0;

    scanf("%lf %lf %lf",&a,&b,&n);
    for(double i = n; i >= 2; i--){
        result = (int)((i * a) / b) - (a * (int)(i / b));
        if(result > tmp2){
            tmp2 = result;
            
        }
        printf("%d %d\n",tmp2,result);
    }
    printf("%d\n",tmp2);
    return(0);
}
