#include<stdio.h>
int powerlog(int a,int b){
if(b==1) return a;
int k = powerlog(a,b/2);
int recAns = k * k;
return recAns;
}
int main(){
int a=2;
int b=4;
int p = powerlog(a,b);
return 0;
}
I2luY2x1ZGU8c3RkaW8uaD4KaW50IHBvd2VybG9nKGludCBhLGludCBiKXsKICAgIGlmKGI9PTEpIHJldHVybiBhOwogICAgaW50IGsgPSBwb3dlcmxvZyhhLGIvMik7CiAgICBpbnQgcmVjQW5zID0gayAqIGs7CiAgICByZXR1cm4gcmVjQW5zOwp9CmludCBtYWluKCl7CiAgICBpbnQgYT0yOwogICAgaW50IGI9NDsKICAgIGludCBwID0gcG93ZXJsb2coYSxiKTsKICAgIHByaW50ZigiVGhlIGFucyBpcyAlZCIscCk7CiAgICByZXR1cm4gMDsKfQ==