print(( pow(2,10105,10000) + pow(2,123456,10000) ) % 10000)
Standard input is empty
3968
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!