Jack is a professional mountain climber. He has a rope that is 623 meters long. He buys an additional rope to make sure he is prepared for any situation. The total length of both ropes is 377 meters more than the length of the first rope. What is the total length of the two ropes?