Distinguish Y, XZ, -Y and -XZ

Problem Name:
Distinguish Y, XZ, -Y and -XZ
Site:CodeForces
Links:
Tags:
Problem setters: