This problem is in Contest(s) below:
Contest 5949:小九进制转换练习