program pil_15_15(input1,output);
type
	FR = file of real;
var
	F : FR;


function NextToLast(var F : FR) : real;
var
	cur, prev : real;
begin
	reset(F);
	read(F, cur);
	while not eof(F) do begin
		prev := cur;
                read(F, cur);
	end;
	NextToLast := prev;
end;

begin
	assign(F, 'input1');
	WriteLn(NextToLast(F):0);
end.
