#!/usr/bin/env python
# coding: utf-8

# In[5]:


import math 
x=int(input("x="))
if x<0:
    y=x**2+1
    print('y=',y)
else:
    if x>=1:
        y=4*x-1
        print('y=',y)
    else:
        y=2*x+1
        print('y=',y)
    


# In[6]:


import math 
x=int(input("x="))
if x<0:
    y=x**2+1
    print('y=',y)
else:
    if x>=1:
        y=4*x-1
        print('y=',y)
    else:
        y=2*x+1
        print('y=',y)
    


# In[ ]:




