#include #include #include #include #include int main(void) { int num; int seq[3000]={0}; scanf("%d",&num); for(int i=0;i