How to use a RTC and a 7-seg display?

I'm working on a project that requires both a 7-seg display and an RTC. The issue here is that they both require the same pins (A5 and A4) on an arduino uno. How can I make this work?

Would I need to purchase a shift register?