#include<compat/deprecated.h>
#include<avr/io.h>
#include<avr/delay.h>
int main()
{

DDRB=0x00;
DDRA=0xff;
while(1)
	{	
	if(~PINB & (1<<PB2))
		{   
			for(int j=0;j<5;j++)
			{
 			sbi(PORTA,PA2);
			_delay_ms(50);
			cbi(PORTA,PA2);
			_delay_ms(50);
			}
		}
	else
		{
		cbi(PORTA,PA2);
		}
    }
}
