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