#include<stdio.h>


void divide(int n,int d,int *quotient, int *remainder){
    *quotient = n / d;
    *remainder= n % d;
}

int main() {
    int n ,d;
    
    if(scanf("%d %d", &n, &d) != 2){
        printf("Invalid input\n");
        return 1;
    }
    
    if(d == 0){
        printf("Invalid input\n");
        return 1;
    }
    
    int quotient, remainder;
    
    divide(n, d &quotient, &remainder);
    
    printf("%d,%d\n", quotient, remainder);
    
    return 0;
}