Take first bar and suspend it in a stand with the help of thread. SO that it is free to rotate in horizontal plane.Note the direction in which it sets itself.If the direction is Noth and South it may be magnet.Again rotate it,if this time again it sets itself in north Now repeat above experiment with second bar and n the same way find if it is sets always in Nrort ad South direction then it will be magnet.