a[99999],T[99999],n,e;main(i){ for(*a=1,scanf("%d",&n),e=2;e=e;i--)if(a[i-e]&&a[i]