#include
using namespace std;
void input(int,double);
void check(int ,double);
int main()
{
int c1;
double c2;
cin>>c1>>c2;
if(c1 > c2 )
{
cout<<c2<<endl;
}
else
{
input(c1,c2);
}
return 0;
}
void input(int c, double d)
{
if( (0 < c && c<=2000) && (0<=d && d <= 2000) )
{
check(c,d);
}
else
{
cout<< d<<endl;
}
}
void check(int a,double b)
{
if(a%5!=0)
{
cout<< b<<endl;
}
else
{
double c;
c=((b-a)-0.5);
cout<< c<<endl;
}
}
this code compiles perfectly but its shows me wrong answer plsrectify the error in my algorithm