Hello everyone
I need to delete the firms that does not have data for three years consecutively. please teach me how to do it

for example
firm1 has data for five years but as follows (2005 2007 2008 2010 2012). i dont want this firm i want to delete it from my sample . hope you get my point

thanks in advance