What's the difference between sin and shame?

It's a sin to put it in, but it's a shame to pull it out.