public static void main ( String [ ] $ ) {
  Scanner sc = new Scanner ( in ) ;
  long [ ] a = new long [ 61 ] ;
  for ( int i = 0 ;
  i < 61 ;
  i ++ ) {
    a [ i ] = power ( 2 , i ) ;
  }
  long n = sc . nextLong ( ) ;
  int exponent = 0 ;
  while ( n / a [ exponent ] > 0 ) exponent ++ ;
  exponent -- ;
  int count = 0 ;
  long t = 1 ;
  while ( t <= n ) {
    if ( exponent % 2 == 1 ) {
      if ( count % 2 == 0 ) t = right ( t ) ;
      else t = left ( t ) ;
    }
    else {
      if ( count % 2 == 0 ) t = left ( t ) ;
      else t = right ( t ) ;
    }
    count ++ ;
  }
  String [ ] ans = {
    "Aoki" , "Takahashi" };
    out . println ( ans [ ( count + 1 ) % 2 ] ) ;
  }
  
public static void main ( String [ ] $ ) { Scanner sc = new Scanner ( in ) ; long [ ] a = new long [ 61 ] ; for ( int i = 0 ; i < 61 ; i ++ ) { a [ i ] = power ( 2 , i ) ; } long n = sc . nextLong ( ) ; int exponent = 0 ; while ( n / a [ exponent ] > 0 ) exponent ++ ; exponent -- ; int count = 0 ; long t = 1 ; while ( t <= n ) { if ( exponent % 2 == 1 ) { if ( count % 2 == 0 ) t = right ( t ) ; else t = left ( t ) ; } else { if ( count % 2 == 0 ) t = left ( t ) ; else t = right ( t ) ; } count ++ ; } String [ ] ans = { " Aoki " , " Takahashi " } ; out . println ( ans [ ( count + 1 ) % 2 ] ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (identifier))))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (decimal_integer_literal))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (decimal_integer_literal)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal) (identifier))))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (while_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (array_access array: (identifier) index: (identifier))) right: (decimal_integer_literal))) body: (expression_statement (update_expression (identifier)))) (expression_statement (update_expression (identifier))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal))) consequence: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal))) consequence: (expression_statement (assignment_expression left: (identifier) right: (method_invocation name: (identifier) arguments: (argument_list (identifier))))) alternative: (expression_statement (assignment_expression left: (identifier) right: (method_invocation name: (identifier) arguments: (argument_list (identifier))))))) alternative: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal))) consequence: (expression_statement (assignment_expression left: (identifier) right: (method_invocation name: (identifier) arguments: (argument_list (identifier))))) alternative: (expression_statement (assignment_expression left: (identifier) right: (method_invocation name: (identifier) arguments: (argument_list (identifier)))))))) (expression_statement (update_expression (identifier))))) (local_variable_declaration type: (array_type element: (type_identifier) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_initializer (string_literal) (string_literal)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (decimal_integer_literal))))))))