One man had lost in the forest, he went a km to the south, b km to the west, c km to north and d km to the east. After that he found a road and met another man driving a car who picked him to the nearest town . Write a program that calculates how many km had went a man and how far he was from the initial point