// editor4
#include<stdio.h>
#include<stdbool.h>
bool isValid(long n,long d)
{
    return(n>=-1000 && n<=1000 && d>=1 && d<=1000);
}
long computeQuotien(long n,long d)
{
    return n/d;
}
long computeReminder(long n,long d)
{
    return n%d;
}
int main()
{
   long n,d;
   scanf("%ld %ld",&n,&d);
   if(!isValid(n,d))
   {
       printf("Invalid input");
       return 0;
   }
   long quotient=computeQuotien(n,d);
   long reminder=computeReminder(n,d);
   prinntf("%ld,%d\n",quotient,reminder);
   return 0;
}