#include<iostream>
using namespace std;


int main()
**

int a[1000] = {8,4,3,2,3,2,2,4,4,4};
int b[1000];
int m = 0;