#include <bits/stdc++.h>

#define ll long long
#define rep(i,n) for(int i=0;i<n;i++)

using namespace std;

int main()
{
	cin.tie(0);
	ios_base::sync_with_stdio(0);

	ll k,n,m; cin>>k>>n>>m;
	vector<ll> a(k);
	rep(i,k) cin>>a[i];
	
	vector<ll> b(k, 0);
	rep(i,k)
	{
		b[i] = a[i] * m;
		b[i] /= n;
	}
	ll lim = m;	
	rep(i,k)
		lim -= b[i];
	vector<pair<ll,int>> c(k);
	rep(i,k)
	{
		pair<ll,int>p = make_pair(n*b[i] - m*a[i], i);
		c[i] = p;
	}
	sort(c.begin(), c.end());
	int cnt = 0;
	while (cnt < lim)
	{
		b[c[cnt].second]++;
		cnt++;
	}
	rep(i,k)
		cout << b[i] << " \n"[i == k-1];
}

/******************************************************************************

                              Online C++ Compiler.
               Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.

*******************************************************************************/

#include <bits/stdc++.h>

using namespace std;
typedef long long ll;

int main()
{
    ll a,b,c;
    cin>>a>>b>>c;
    string ans="";
    if(c%2==0){
        int x=abs(a);
        int y=abs(b);
        if(x>y){
            ans+=">";
        }else if(x<y){
            ans+="<";
        }else{
            ans+="=";
        }
    }else{
        if(a<0 && b<0){
            if(a>b){
                ans+="<";
            }else if(a<b){
                ans+=">";
            }else{
                ans+="=";
            }
        }else{
            if(a>b){
                ans+=">";
            }else if(a<b){
                ans+="<";
            }else{
                ans+="=";
            }
        }
    }
    
    cout<<ans<<endl;
    
}
