#include <iostream>
int main()
{
int x = 0 ;
int t = 0;
std::cin>>x>>t;
if(x > 2)
x+=t;
}
else
x-=5;
std::cout<<x;
return 0;
#include <iostream>
int main()
{
int x = 0 ;
int t = 0;
std::cin>>x>>t;
if(x > 2)
{
x+=t;
}
else
{
x-=5;
}
std::cout<<x;
return 0;
}