program main
    integer :: n
    integer :: a(100000) = 0
    integer :: aa(100000) = 0
    integer :: str_a = 0, ans = 0
    logical :: flag = .false.
    read *, n
    do i=1,n
        read *, str_a
        flag = .false.
        do j=1,i
            if(a(j) == str_a) then
                if(aa(j) == 1) then 
                    aa(j) = 0
                else
                    aa(j) = 1
                end if
                flag = .true.
                exit
            end if
        end do
        if(flag .eqv. .false.) then
            a(i) = str_a
            aa(i) = 1
        end if
    end do
    
    do i=1,n
        ans = ans + aa(i)
    end do

    print *, ans 
end program main