program lat_inout2;
var
	z,x,c:integer;
begin
	write('Bilangan 1: ');
	readln(z);
	write('Bilangan 2: ');
	readln(x);
	write('Bilangan 3: ');
	readln(c);
	writeln('Hasilnya ',sqr(z)+2*x-c);
	readln;
end.