On A-distance and Relative A-distance