#include<bits/stdc++.h>
using namespace std;
#ifndef ONLINE_JUDGE
#define dbg(x...) do{cout << "\033[32;1m" << #x << "->" ; err(x);} while(0)
void err(){cout << "\033[39;0m" << endl;}
template<template<typename...> class T,typename t,typename... A>
void err(T<t> a,A... x){for (auto v:a) cout << v << ' '; err(x...);}
template<typename T,typename... A>
void err(T a,A... x){cout << a << ' '; err(x...);}
#else
#define dbg(...)
#endif
typedef long long ll;
typedef pair<int,int> pi;
typedef vector<int> vi;
template<class T> using vc=vector<T>;
template<class T> using vvc=vc<vc<T>>;
template<class T> void mkuni(vector<T>&v)
{
    sort(v.begin(),v.end());
    v.erase(unique(v.begin(),v.end()),v.end());
}
template<class T>
void print(T x,int suc=1)
{
    cout<<x;
    if(suc==1) cout<<'\n';
    else cout<<' ';
}
template<class T>
void print(const vector<T>&v,int suc=1)
{
    for(int i=0;i<v.size();i++)
        print(v[i],i==(int)(v.size())-1?suc:2);
}
int main() {
	int n, m;
	cin >> n >> m;
	if(n > m) {
		for(int i = 1; i <= n; ++i) {
			cout << i << " ";
		}
		for(int i = 1; i <= m - 1; ++i) {
			cout << -i << " ";
		}
		cout << -1ll * (1 + n) * n / 2ll  + 1ll * m * (m - 1) / 2ll << endl;
	}
	else {
		for(int i = 1; i <= m; ++i) {
			cout << -i << " ";
		}
		for(int i = 1; i <= n - 1; ++i) {
			cout << i << " ";
		}
		cout << -1ll * ( n - 1) * n / 2ll  + 1ll * m * (m + 1) / 2ll << endl;
	
	}
}
#include <bits/stdc++.h>
using namespace std;

// template {{{
#define  range(i, l, r) for (int i = (int)(l); i < (int)(r); (i) += 1)
#define rrange(i, l, r) for (int i = (int)(r) - 1; i >= (int)(l); (i) -= 1)

#define  whole(f, x, ...) ([&](decltype((x)) container) { return (f)(  begin(container),  end(container), ## __VA_ARGS__); })(x)
#define rwhole(f, x, ...) ([&](decltype((x)) container) { return (f)( rbegin(container), rend(container), ## __VA_ARGS__); })(x)

#define debug(x) cerr << "(" << __LINE__ << ")" << #x << ": " << (x) << endl

using i32 = int;
using u32 = unsigned int;
using i64 = long long;
using u64 = unsigned long long;

constexpr i32 mod   = 1e9 + 7;
// constexpr i32 mod   = 998244353;

constexpr i32 inf   = 1001001001;
constexpr i64 infll = 1001001001001001001ll;

constexpr i32 dx[] = {0, -1, 1, 0, -1, 1, -1, 1}; 
constexpr i32 dy[] = {-1, 0, 0, 1, -1, -1, 1, 1};

struct IoSetup { IoSetup(i32 x = 15){ cin.tie(0); ios::sync_with_stdio(0); cout << fixed << setprecision(x); cerr << fixed << setprecision(x); } } iosetup;

template <typename T = i64> T input() { T x; cin >> x; return x; }

template <typename T> ostream &operator<<(ostream &os, vector<T> &v) { range(i, 0, v.size()) { os << v[i] << (i + 1 != (int)v.size() ? " " : ""); } return os; } 
template <typename T> istream &operator>>(istream &is, vector<T> &v) { for (T &in : v) is >> in; return is; }

template <typename T1, typename T2> ostream &operator<<(ostream &os, pair<T1, T2> p) { os << "(" << p.first << ", " << p.second << ")"; return os; }
template <typename T1, typename T2> istream &operator>>(istream &is, pair<T1, T2> &p) { is >> p.first >> p.second; return is; }

template <typename T> vector<T> make_vector(size_t a, T b) { return vector<T>(a, b); }
template <typename... Ts> auto make_vector(size_t a, Ts... ts) { return vector<decltype(make_vector(ts...))>(a, make_vector(ts...)); }

template <typename T1, typename T2> inline bool chmax(T1 &a, T2 b) { return a < b && (a = b, true); }
template <typename T1, typename T2> inline bool chmin(T1 &a, T2 b) { return a > b && (a = b, true); }
// }}}

void solve() {
  int h, w;
  cin >> h >> w;

  vector< string > as(h);
  cin >> as;

  auto dp = make_vector(h, w, -inf);
  function<int(int, int, int)> f = [&](int y, int x, int s) {
    if (y == h - 1 and x == w - 1) return 0;

    int &res = dp[y][x];
    if (res != -inf) return res;

    if (y + 1 < h) {
      int d = (as[y + 1][x] == '+' ? 1 : -1);
      chmax(res, -f(y + 1, x, -(s + d)) + d);
    }

    if (x + 1 < w) {
      int d = (as[y][x + 1] == '+' ? 1 : -1);
      chmax(res, -f(y, x + 1, -(s + d)) + d);
    }
    return res;
  };

  int r = f(0, 0, 0);
  if (r == 0) cout << "Draw" << endl;
  else if (r > 0) cout << "Takahashi" << endl;
  else cout << "Aoki" << endl;
}

signed main() {
  solve();
}
