#include "stdio.h"double f(double x){ if(x>0) return x*x+1; else if(x<0) return -x; else return 100.0;}int main(){ double n; while(scanf("%lf",&n)!=EOF)//当输入到文件尾停止 { printf("%0.1lf\n",f(n) ); } return 0;}