A bar magnet of magnetic moment M1 is suspended by a wire in a magnetic field. The top of the wire is rotated through 180o , then the magnet rotated through 45o. Under similar conditions, another magnet of magnetic moment is rotated through 30o. The ratio M1:M2 is