#include <iostream>
#include <stdlib.h>
using namespace std;
void func(int a,int b)
{
if(b==0)
throw b;
cout<<a/b<<endl;
}
int main()
{
int a,b;
while (cin>>a>>b)
{
try
{
func(a,b);
}
catch(...)
{
cout<<"是否需要重新输入:y或者n"<<endl;
char str;
cin>>str;
if(!cin||str=='n')
break;
}
}
system("pause");
return 0;
}