import java.lang.*;
public class Solution {
    public double Power(double base, int exponent) {
        if(base==0) return 0.00000;
        if(exponent==0) return 1.00000;
        if(exponent==1) return base*exponent;
      if(exponent>0)  return Power(base,exponent-1)*base;
        else return Power(base,exponent+1)/base;
  }
}