static int countNumbers ( int X , int Y , int N ) {
  int divisibleByX = N / X ;
  int divisibleByY = N / Y ;
  int LCM = ( X * Y ) / gcd ( X , Y ) ;
  int divisibleByLCM = N / LCM ;
  int divisibleByXorY = divisibleByX + divisibleByY - divisibleByLCM ;
  int divisibleByXnotY = divisibleByXorY - divisibleByY ;
  return divisibleByXnotY ;
}

static int countNumbers ( int X , int Y , int N ) { int divisibleByX = N / X ; int divisibleByY = N / Y ; int LCM = ( X * Y ) / gcd ( X , Y ) ; int divisibleByLCM = N / LCM ; int divisibleByXorY = divisibleByX + divisibleByY - divisibleByLCM ; int divisibleByXnotY = divisibleByXorY - divisibleByY ; return divisibleByXnotY ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (identifier)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (identifier)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (identifier)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (identifier)))) (return_statement (identifier))))