#include int res(int x){ int i; if(x==1) return 1; else if(x==2) return 3; else{ for(i=2;i