using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(Foo(20));
Console.ReadLine();
}
public static int Foo(int i)
{
if (i <= 0)
{
return 0;
}
else if (i >= 1 && i <= 2)
{
return 1;
}
else
{
return Foo(i - 1) + Foo(i - 2);
}
}
}
}