Go to the S.S. Anne in Vermillion City. Go through the ship and you will eventually find your rival. Beat your rival and then move into the Captain's Cabin. Talk to the Captain and give him a back rub. In exchange for this, he will give you the Cut HM.