Below is the pin mapping for the Atmega8, the original chip used in early Arduinos. The pin mapping for the Atmega168 and the 328P is roughly the same.