Grandfather Dovlet’s calculator

Problem Name:
Grandfather Dovlet’s calculator
Site:CodeForces
Links:
Tags:
Problem setters: