#include <cmath>
#include <iostream>
int main()
{
unsigned long long a = 1000ULL ;
unsigned long long b = 10ULL ;
auto res = std::pow( a, b ) ;
std::cout << std::fixed << res << '\n' ;
a = 10000000000ULL ;
b = 100000ULL ;
res = std::pow( a, b ) ;
if( res != HUGE_VAL ) std::cout << std::fixed << res << '\n' ;
else std::cout << "overflow\n" ;
}
I2luY2x1ZGUgPGNtYXRoPgojaW5jbHVkZSA8aW9zdHJlYW0+CgppbnQgbWFpbigpCnsKICAgIHVuc2lnbmVkIGxvbmcgbG9uZyBhID0gMTAwMFVMTCA7CiAgICB1bnNpZ25lZCBsb25nIGxvbmcgYiA9IDEwVUxMIDsKICAgIGF1dG8gcmVzID0gc3RkOjpwb3coIGEsIGIgKSA7CiAgICBzdGQ6OmNvdXQgPDwgc3RkOjpmaXhlZCA8PCByZXMgPDwgJ1xuJyA7CgogICAgYSA9IDEwMDAwMDAwMDAwVUxMIDsKICAgIGIgPSAxMDAwMDBVTEwgOwogICAgcmVzID0gc3RkOjpwb3coIGEsIGIgKSA7CiAgICBpZiggcmVzICE9IEhVR0VfVkFMICkgc3RkOjpjb3V0IDw8IHN0ZDo6Zml4ZWQgPDwgcmVzIDw8ICdcbicgOwogICAgZWxzZSBzdGQ6OmNvdXQgPDwgIm92ZXJmbG93XG4iIDsKfQo=