include [HTML_REMOVED]
char A[100010];
int a[100010],c[100010];
int b,i,r,size;
void div()
{
r=0;
size=0;
int flag=0;
for(int j=0;j<i;j)
{
r=r*10+a[j];
if(r/b!=0) flag=1;
if(flag==1) c[size]=r/b;
r=r%b;
}
}
int main()
{
scanf(“%s”,A);
scanf(“%d”,&b);
for(i=0;A[i]!=’\0’;i)
{
a[i]=A[i]-‘0’;
}
div();
for(int j=0;j<size;j)
{
printf(“%d”,c[j]);
}
if(size==0) printf(“0”);
printf(“\n%d”,r);
return 0;
}