#abc146c. [abc146_c]Buy an Integer

[abc146_c]Buy an Integer

给定a,b,ca,b,c三个数

定义一个整数的价格为

这个整数a+*a+这个整数的位数b*b

请判断用cc元钱能买到的最大的整数