module SimpleUndirectedGraphic
    require 'set'

    def each_connected_component(&block)
        return enum_for(__method__) unless block_given?
        reached = Set.new
        each_node do |s|
            next if reached.include?(s)
            cc = Set[s]
            queue = [s]
            until queue.empty?
                u = queue.shift
                each_neighbour(u) do |v|
                    next if cc.include?(v)
                    cc << v
                    queue << v
                end
            end
            block.call(cc)
            reached += cc
        end
    end

    def connected_components
        each_connected_component.to_a
    end
end

class Hash
    include SimpleUndirectedGraphic
    alias each_node each_key
    def each_neighbour(u)
        self[u].each do |v|
            yield(v)
        end
    end
end

n = gets.to_i

if n == 2
    puts 'Hanako'
    exit
end

g = {}
(0..n-1).map {|i| g[i] = Set.new}

a = (1..n).map { gets.chomp }
m = 0
(0..n-1).each do |u|
    (0..u-1).each do |v|
        if a[u][v] == ?Y
            m += 1
            g[u] << v
            g[v] << u
        end
    end
end

if n == 3
    puts m == 0 ? 'Taro' : 'No'
    exit
end

even_cc = odd_cc = 0
g.connected_components.each do |cc|
    if cc.size.even?
        even_cc += 1
    else
        odd_cc += 1
    end
end

#p m
#p g.connected_components
#p [odd_cc, even_cc]

if m.even?
    if even_cc == 0 && odd_cc == 2
        puts 'Hanako'
    elsif even_cc + odd_cc == 2
        puts 'Taro'
    elsif even_cc >= 1
        puts 'Taro'
    elsif (odd_cc + even_cc).odd?
        puts 'Taro'
    else
        puts 'Hanako'
    end
else
    if even_cc == 0 && odd_cc == 2
        puts 'Taro'
    elsif even_cc + odd_cc == 2
        puts 'Hanako'
    elsif even_cc >= 2
        puts 'Hanako'
    elsif (odd_cc + even_cc).even?
        puts 'Hanako'
    else
        puts 'Taro'
    end
end