Answer is 392.
Total relations = 29 = 512
Relations which are neither Ref, nor Symmetric means we have to do Total Realtions - (Symmetric U reflexive)
Number of Reflexive relations = We have choice only on non-diagonal elements hence 2n^2-n = 29-3 = N(R) = 26
Number of symmetric relations = We have choice for diagonal elements as well as symmetric pairs = 2n * 2(n^2-n)/2 = N(S) = 23 * 23 = 26
Number of relations which are both symmetric as well as Reflexive = only choice about pairs (Diagonal elements must be there) = N(R $\cap$ S) = 2(n^2-n)/2 = 23
Hence N(R U S) = N(R) + N(S) - N(R $\cap$ S)
= 64 + 64 - 8 = 120
Hence niether Ref, nor symmetric = 512-120 = 392.