#include #include using namespace std; const int N = 999999; int a[N]={0}; int main() { for(int i=1;i