The sum of two rational numbers is 512. If one of the numbers is 6314, find the other number.