uses clib;

var
  n: shortint;

begin
  readln(n);
  writeln(fibonacci[n + 2])
end.