prints J and M1,M2