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