#include using namespace std; #define rep(i, n) for (ll i = 0; i < n; i++) #define all(x) (x).begin(),(x).end() const long long INF = 1LL << 60; using ll = long long; using ld = long double; #define v2d(type,H,W,name,value) vector> name(H,vector(W,value)); int main() { ll N,M; cin >> N >> M; vector a(N); rep(i,N){ cin >> a[i]; } ll sum=0; rep(i,N) sum+=a[i]; rep(i,N){ cout << (a[i]*M)/sum; if(i