#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using V = vector<int>;
using VV = vector<V>;
using VVV = vector<VV>;
using VL = vector<ll>;
using VVL = vector<VL>;
using VVVL = vector<VVL>;
template<class T> using VE = vector<T>;
template<class T> using P = pair<T, T>;
#define rep(i,n) for(int i=0;i<(n);i++)
#define rep1(i,n) for(int i=1;i<=(n);i++)
#define REP(i,k,n) for(int i=(k);i<(n);i++)
#define all(a) (a).begin(),(a).end()
#define output(x,y) cout << fixed << setprecision(y) << x << endl;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
ll Gcd(ll a, ll b) { return b ? Gcd(b, a % b) : a; }
ll Lcm(ll a, ll b) { return a / Gcd(a, b) * b; }
const ll MOD = 1e9 + 7;
// const ll MOD = 998244353;
ll upper = MOD + MOD;
ll under = -upper;
ll UPPER = MOD * MOD;
ll UNDER = -UPPER;
const long double pi = 3.141592653589793;
int main(){
	int n;
	cin >> n;
	double x0, y0, xh, yh;
	cin >> x0 >> y0 >> xh >> yh;
	double xmid = (x0 + xh) / 2;
	double ymid = (y0 + yh) / 2;
	double degtmp = 2 * pi / (double)n;
	double r = sqrt(pow(xh - x0, 2) + pow(yh - y0, 2)) / 2;
	double deg0 = atan2(y0 - ymid, x0 - xmid);
	double deg = deg0 + degtmp;
	cout << fixed << setprecision(8) << xmid + r * cos(deg) << " " << ymid + r * sin(deg) << endl;
	return 0;
}
#include<bits/stdc++.h>
using namespace std;
#define N 100005
#define Db double
#define For(i,x,y)for(i=x;i<=(y);i++)
struct dls
{
	int val,id;
}b[N];
int a[N],h[N],n,m;
bool cmp(dls _,dls __)
{
	return 1LL*_.val*n-1LL*a[_.id]*m>1LL*__.val*n-1LL*a[__.id]*m;
}
int main()
{
	int k,i,tot=0;
	scanf("%d%d%d",&k,&n,&m);
	For(i,1,k)
	{
		scanf("%d",&a[i]);
		b[i].val=ceil(Db(a[i])/Db(n)*Db(m));
		tot+=b[i].val;
		b[i].id=i;
	}
	sort(b+1,b+k+1,cmp);
	For(i,1,tot-m)b[i].val--;
	For(i,1,k)h[b[i].id]=b[i].val;
	For(i,1,k)printf("%d ",h[i]);
	return 0;
}