#include <bits/stdc++.h> using namespace std; int main() {int n; int date[1005]; cin>>n; for(int i=0;i<n;i++){ cin>>date[i]; } sort(date,date+n); for(int j=0;j<n;j++){ cout<<100*(date[j]-date[0])/(date[n-1]-date[0])<<" "; } return 0;}