#include <stdio.h>

int main(void) {
	int a,b,c,d;// your code goes here
    scanf("%d,%d",&a,&b);
    if(b==0)
    {
     return 0;
    }
    c=a%b;
    d=a/b;
    switch(c)
    {
     case 0:
      printf("%d÷%d=%d",a,b,d);
      break;
     default:
      printf("%d÷%d=%d余り%d",a,b,d,c);
      break;
    }
	return 0;
}
