The shell in small doses and the tail are relatively harmless. The head and veins are parts you want to avoid, though. The head is not meant to be eaten and the vein, while edible, is actually a digestive tract, not a vein. Therefore the only shrimps you should eat are beheaded and deveined.