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