#include using namespace std; int main() { int n; int a[100]; cin >> n; int i,j; for (i=0; i> a[i]; a[i] %= 1000000007; } for (i=0; i