<?php

function fibo($n)
{
  return(($n < 2) ? 1 : fibo($n - 2) + fibo($n - 1));
}

$n = ($argc == 2) ? $argv[1] : 31;
$r = fibo($n);
print "$r\n";
?>