int led[]={7,6,5};
void setup() {  
  for(int j=5;j<8;j++){
  pinMode(j, OUTPUT);
 }
 
}
void loop() {
  for(int i=0;i<3;i++){
  digitalWrite(led[0],HIGH);
  delay(5000);
  digitalWrite(led[0],LOW);
  delay(500);
  digitalWrite(led[1],HIGH);
  delay(3000);
  digitalWrite(led[1],LOW);
  delay(500);
  digitalWrite(led[2],HIGH);
  delay(5000);
  digitalWrite(led[2],LOW);
  delay(500);
  digitalWrite(led[1],HIGH);
  delay(3000);
   digitalWrite(led[1],LOW);
  delay(500);
 
  }
}