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