#include <stdio.h>
#include <math.h>

int main(void) {
	int x;
	float A;
	scanf("%d", &x);
	if(x>0) 
	A=pow(x, 2);
	else
	if(x==0)
	A = x + 2;
	else
	A = x / 2;
	printf("A = %.1f.", A);
	return 0;
}
