Function GetNFib(nn : Longint) : Longint;
Function GetNFibonanchi(a,b,n : Longint) : Longint;
Begin
If n>3 then GetNFibonanchi:=GetNFibonanchi(a+b,a,n-1)
else GetNFibonanchi:=a+b;
End;
Begin
If nn<1 then GetNFib:=0<br> else GetNFib:=GetNFibonanchi(1,0,nn+1);
End;
Begin { 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233 }
Writeln(GetNFib(7));
End.