#include<iostream> using namespace std; int cow(int n) { if(n>4) return cow(n-1)+cow(n-3); else return n; } int main () { int n; while(cin>>n&&n) printf("%d\n",cow(n)); return 0; }
#include<iostream> using namespace std; int cow(int n) { if(n>4) return cow(n-1)+cow(n-3); else return n; } int main () { int n; while(cin>>n&&n) printf("%d\n",cow(n)); return 0; }