Ruddy has x dollars in his account. He spends $34.56 to buy medicines for his grandmother. If the balance in his account is $265.34, what was the amount in his account before purchase?