#include<iostream>
using namespace std;
int main()
{
int x, y;
cout << "在键盘上输入x: " << endl;
cin >> x;
if (x < 5)y = x;
else if (x >= 1 && x < 15)y = x + 6;
else if (x >= 15)y = x - 6;
cout << "y=" << y << endl;
system("pause");
return 0;
}