#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define int long long
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
//g++ c.cpp
//./a.out
//oj d https://atcoder.jp/contests/abc205/tasks/abc205_c
//oj t

signed main(){
    int a, b, c;
    cin >> a >> b >> c;
    if(c%2==0){
        if(abs(a)>abs(b)){
            cout << ">" << endl;
            return 0;
        }
        else if(abs(a)<abs(b)){
            cout << "<" << endl;
            return 0;
        }
        else if (abs(a) == abs(b))
        {
            cout << "=" << endl;
            return 0;
        }
    }
    else if(c%2==1){
        if(a>b)
        {
            cout << ">" << endl;
            return 0;
        }
        else if(a<b){
            cout << "<" << endl;
            return 0;
        }
      else if(a==b){
                    cout << "=" << endl;
            return 0;
      }
    }
}
#include <bits/stdc++.h>

using namespace std;

int main(){
  long long int A, B, C;
  
  cin >> A >> B >> C;
  
  long long int A1 = A % 10;
  
  if (A1 == 0){
    cout << 0;
  } 
  else if (A1 == 1){
    cout << 1;
  } 
  else if (A1 == 2){
    if (B % 4 == 0){
      cout << 6;
    } else if (B % 4 == 2){
      if (C > 1) {
        cout << 6;
      } else {
        cout << 4;
      }
    } else if (B % 4 == 1){
      cout << 2;
    } else {
      if (C % 2 == 0){
        cout << 2;
      } else {
        cout << 8;
      }
    }
  } 
  else if (A1 == 3){
    if (B % 4 == 0){
      cout << 1;
    } else if (B % 4 == 2){
      if (C > 1) {
        cout << 1;
      } else {
        cout << 9;
      }
    } else if (B % 4 == 1){
      cout << 3;
    } else {
      if (C % 2 == 0){
        cout << 3;
      } else {
        cout << 7;
      }
    }
  } 
  else if (A1 == 4){
    if (B % 2 == 0){
      cout << 6;
    } else {
      cout << 4;
    }
  } 
  else if (A1 == 5){
    cout << 5;
  } 
  else if (A1 == 6){
    cout << 6;
  } 
  else if (A1 == 7){
    if (B % 4 == 0){
      cout << 1;
    } else if (B % 4 == 2){
      if (C > 1) {
        cout << 1;
      } else {
        cout << 9;
      }
    } else if (B % 4 == 1){
      cout << 7;
    } else {
      if (C % 2 == 0){
        cout << 7;
      } else {
        cout << 3;
      }
    }
  } 
  else if (A1 == 8){
    if (B % 4 == 0){
      cout << 6;
    } else if (B % 4 == 2){
      if (C > 1) {
        cout << 6;
      } else {
        cout << 4;
      }
    } else if (B % 4 == 1){
      cout << 8;
    } else {
      if (C % 2 == 0){
        cout << 8;
      } else {
        cout << 2;
      }
    }
  } 
  else if (A1 == 9){
    if (B % 2 == 0){
      cout << 1;
    } else {
      cout << 9;
    }
  }
    
  
  
  return 0;
}