unsigned int k;
void setup() {
  DDRA= 0xFF;
  DDRC &= ~(1<<6);
}

void loop() {
  PINC= 0x35;
  for(k=0; k<4; k++)
  {
    if(PINC & (1<<k))
    PORTA |= 1<<k;
    else
    PORTA &= ~(1<<k);
  }
}