You are given two identical looking bars A and B. One of them is a bar magnet, while the other is an iron bar. How will you distinguish them without using any other material?