#include <iostream>
using namespace std;
const int n = 10;
int main() {
int s[n][2];
for (int i = 0; i < n; i++) {
cout << i << ": ";
cin >> s[i][0];
}
for (int i = 0; i < n; i++) {
s[i][1] = 0;
for (int j = 0; j < n; j++) {
if (s[i][0] < s[j][0])
s[i][1]++;
}
s[i][1]++;
}
for (int i = 0; i < n; i++)
cout << "s[" << i << "]: " << s[i][1] << endl;
return 0;
}
/* end */