Differentiate between A3 and D3 in code

http://arduino.cc/en/Reference/DigitalRead