public static void main ( String [ ] args ) {
  Scanner scanner = new Scanner ( System . in ) ;
  int n = scanner . nextInt ( ) ;
  if ( n == 1 ) {
    System . out . println ( 1 ) ;
    return ;
  }
  long Gx = scanner . nextLong ( ) ;
  long Gy = scanner . nextLong ( ) ;
  boolean [ ] dead = new boolean [ n ] ;
  Long [ ] [ ] location = new Long [ n ] [ 2 ] ;
  location [ 0 ] [ 0 ] = scanner . nextLong ( ) ;
  location [ 0 ] [ 1 ] = scanner . nextLong ( ) ;
  dead [ 0 ] = true ;
  int count = 1 ;
  for ( int i = 1 ;
  i < n ;
  i ++ ) {
    location [ i ] [ 0 ] = scanner . nextLong ( ) ;
    location [ i ] [ 1 ] = scanner . nextLong ( ) ;
    boolean check = ( location [ i ] [ 1 ] - Gy ) * ( location [ 0 ] [ 0 ] - Gx ) == ( location [ 0 ] [ 1 ] - Gy ) * ( location [ i ] [ 0 ] - Gx ) ;
    if ( check ) dead [ i ] = true ;
  }
  for ( int i = 1 ;
  i < n ;
  i ++ ) {
    if ( ! dead [ i ] ) {
      count ++ ;
      for ( int j = i + 1 ;
      j < n ;
      j ++ ) {
        if ( ! dead [ j ] ) {
          boolean check = ( location [ j ] [ 1 ] - Gy ) * ( location [ i ] [ 0 ] - Gx ) == ( location [ i ] [ 1 ] - Gy ) * ( location [ j ] [ 0 ] - Gx ) ;
          if ( check ) {
            dead [ j ] = true ;
          }
        }
      }
    }
  }
  System . out . println ( count ) ;
}

public static void main ( String [ ] args ) { Scanner scanner = new Scanner ( System . in ) ; int n = scanner . nextInt ( ) ; if ( n == 1 ) { System . out . println ( 1 ) ; return ; } long Gx = scanner . nextLong ( ) ; long Gy = scanner . nextLong ( ) ; boolean [ ] dead = new boolean [ n ] ; Long [ ] [ ] location = new Long [ n ] [ 2 ] ; location [ 0 ] [ 0 ] = scanner . nextLong ( ) ; location [ 0 ] [ 1 ] = scanner . nextLong ( ) ; dead [ 0 ] = true ; int count = 1 ; for ( int i = 1 ; i < n ; i ++ ) { location [ i ] [ 0 ] = scanner . nextLong ( ) ; location [ i ] [ 1 ] = scanner . nextLong ( ) ; boolean check = ( location [ i ] [ 1 ] - Gy ) * ( location [ 0 ] [ 0 ] - Gx ) == ( location [ 0 ] [ 1 ] - Gy ) * ( location [ i ] [ 0 ] - Gx ) ; if ( check ) dead [ i ] = true ; } for ( int i = 1 ; i < n ; i ++ ) { if ( ! dead [ i ] ) { count ++ ; for ( int j = i + 1 ; j < n ; j ++ ) { if ( ! dead [ j ] ) { boolean check = ( location [ j ] [ 1 ] - Gy ) * ( location [ i ] [ 0 ] - Gx ) == ( location [ i ] [ 1 ] - Gy ) * ( location [ j ] [ 0 ] - Gx ) ; if ( check ) { dead [ j ] = true ; } } } } } System . out . println ( count ) ; }
(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 (field_access object: (identifier) field: (identifier)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (return_statement))) (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: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (array_type element: (boolean_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (boolean_type) dimensions: (dimensions_expr (identifier))))) (local_variable_declaration type: (array_type element: (type_identifier) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (type_identifier) dimensions: (dimensions_expr (identifier)) dimensions: (dimensions_expr (decimal_integer_literal))))) (expression_statement (assignment_expression left: (array_access array: (array_access array: (identifier) index: (decimal_integer_literal)) index: (decimal_integer_literal)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (array_access array: (array_access array: (identifier) index: (decimal_integer_literal)) index: (decimal_integer_literal)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (true))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (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: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (decimal_integer_literal)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (decimal_integer_literal)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (boolean_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (decimal_integer_literal)) right: (identifier))) right: (parenthesized_expression (binary_expression left: (array_access array: (array_access array: (identifier) index: (decimal_integer_literal)) index: (decimal_integer_literal)) right: (identifier)))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (array_access array: (array_access array: (identifier) index: (decimal_integer_literal)) index: (decimal_integer_literal)) right: (identifier))) right: (parenthesized_expression (binary_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (decimal_integer_literal)) right: (identifier))))))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (true)))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (unary_expression operand: (array_access array: (identifier) index: (identifier)))) consequence: (block (expression_statement (update_expression (identifier))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (decimal_integer_literal)))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (unary_expression operand: (array_access array: (identifier) index: (identifier)))) consequence: (block (local_variable_declaration type: (boolean_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (decimal_integer_literal)) right: (identifier))) right: (parenthesized_expression (binary_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (decimal_integer_literal)) right: (identifier)))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (decimal_integer_literal)) right: (identifier))) right: (parenthesized_expression (binary_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (decimal_integer_literal)) right: (identifier))))))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (true))))))))))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier))))))