#include #define N 2005 #define LL long long #define Ms(a,b) memset(a,b,sizeof a) #define db(x) cerr<<#x<<"="<=0)res=i; printf("%d\n",res); } return 0; }