#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
long double s[n], h=0;
for(int i=0; i<n; i++)
{
cin >> s[i];
h+=s[i];
}
for(int i=0; i<n; i++)
{
cout.precision(4);
cout << fixed << s[i]/h << " ";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgbjsKCWNpbiA+PiBuOwoJbG9uZyBkb3VibGUgc1tuXSwgaD0wOwoJZm9yKGludCBpPTA7IGk8bjsgaSsrKQoJewoJCWNpbiA+PiBzW2ldOwoJCWgrPXNbaV07Cgl9Cglmb3IoaW50IGk9MDsgaTxuOyBpKyspCgl7CgkJY291dC5wcmVjaXNpb24oNCk7CgkJY291dCA8PCBmaXhlZCA8PCBzW2ldL2ggPDwgIiAiOwoJfQoJcmV0dXJuIDA7Cn0K