The digital call option and digital put option indicators partition the possible terminal stock prices:
Thus the digital put-call parity is
At time zero, part b gives , so