Drugs that are given to people to help cure them of a medical condition or help reduce the symptoms are often licensed. They can be divided into three groups: over-the-counter, where anybody can buy the drug from a shop; prescription-only medicine, where a doctor has to say that a person is allowed to take a drug; and in some countries, pharmacy medicines, where only a registered pharmacy can sell a drug. Most over-the-counter medication will not hurt a person if they take a bit more than they are meant to. Medications are often produced by pharmaceutical companies and are often patented. Drugs that are not patented are called generic drugs.