How do I file a 1099-S?

I inherited land from my grandpa but then my grandma bought it from me.