#include <iostream>
#include <string>
#include <vector>
#include <deque>
#include <algorithm>
#include <math.h>
#include <iomanip>
#include <sstream>
#define INF 1000000009
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using p = pair<int, int>;


int main() {
    
    ll k,n,m;
    
   
    cin >> k >> n >> m;
    ll x = m;
    vector<ll> ans(k);
    vector<p> pa(k);
    rep(i,k){
      ll a;
      cin >> a;
      ans[i] = (a*m)/n;
      x -= ans[i];
      ll sa = (a*m) % n;
      pa[i] = {sa,i};
    }
    if(x == 0){
      rep(i,k) cout << ans[i] << " ";
      cout << endl;
      return 0;
    }
    sort(pa.begin(), pa.end(), greater<p>() );
    rep(i,x){
      ans[pa[i].second]++;
    }
    rep(i,k) cout << ans[i] << " ";
    cout << endl;
    return 0;
}
#ifdef DEBUG_BUILD
# define _GLIBCXX_DEBUG
#endif
#include <bits/stdc++.h>
#ifdef DEBUG_BUILD
# include "debugger.hpp"
#else
# define debug(...)
# define debugdo(...)
#endif
using namespace std;
using ll = long long;
using ld = long double;
using pll = std::pair<ll, ll>;
template <class T> using vec = std::vector<T>;
template <class T> using vec2 = std::vector<vec<T>>;
template <class T> using vec3 = std::vector<vec2<T>>;
#define rep(i, N) for (ll i = 0; i < (N); i++)
#define rrep(i, N) for (ll i = (N) - 1; i >= 0; i--)
#define range(i, A, B) for (ll i = (A); i < (B); i++)
constexpr int MOD = 1000000007;
constexpr ll INFL = std::numeric_limits<ll>::max();
template <class T> bool chmax(T &a, const T b) { if (a < b) { a = b; return true; } return false; }
template <class T> bool chmin(T &a, const T b) { if (a > b) { a = b; return true; } return false; }

void Main() {
    ll N;
    ll D, H;
    cin >> N >> D >> H;
    ld ret = 0;
    rep(i, N) {
        ll d, h;
        cin >> d >> h;
        ld b = (ld)(h * (D - d) - (H - h) * d) / (D - d) ;
        chmax(ret, b);
    }
    cout << ret << endl;
}

int main() {
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    std::cout << std::fixed << std::setprecision(10);
    Main();
    std::cout << std::flush;
    std::cerr << "--end--" << std::flush;
    return 0;
}
