Sir,
There are a lot of questions that need to be asked (and answered) before one can fully advise you on the necessary steps. For example, what is your marital status, what do you do, what do you intend to do upon return to the U.S., your country of origin and the local policies of the U.S. Consulate, etc.
In general, given your F-1 status, and assuming you had a "Duration of Status" in your I-94 card, you DID NOT accumulate any unlawful presence in the U.S., and technically, you are not subject to a 3/10 year bar. However, a Consular Officer may take into account your violation of the visa terms, and your failure to timely depart from the U.S.
You should consult with a U.S. immigration attorney.
This reply is in the nature of general information, not legal advice and should not be relied on as such.
Alex Berd, Esq.

