38489b1b6e45a2874674cbd95198b03e3c43c0e8400bbd30499555b14b305623
// https://szkopul.edu.pl/problemset/problem/c85ocjC9Ms64OhoPx9CFbNjG/site/?key=statement
#include <bits/stdc++.h>
// #define GARY_DBG
#define GARY_LIB
constexpr int sizik = 1000 * 1001;
#define ar std::array
typedef std::vector<std::vector<int>> _kra;
void solve() {
int a, b, c;
std::cin >> a >> b >> c;
std::cout << "TAK\n";
if ((a & 1) == (b & 1)) {
std::cout << a << " " << b << '\n';
} else if ((c & 1) == (b & 1)) {
std::cout << b << " " << c << '\n';
} else {
std::cout << a << " " << c << '\n';
}
}
int32_t main() {
#ifndef GARY_DBG
std::ios_base::sync_with_stdio(0);
std::cin.tie(0);
std::cout.tie(0);
#endif
int t = 1;
// std::cin >> t;
for (; t > 0; t--) {
solve();
}
return 0;
}