TWOVRIBL - Editorial

How to calculate A=59 for given X = 10^9 ?