#include int main(){ int a; double ans; double b; ans = 0; scanf("%d %lf", &a, &b); ans = (1 - b); for (int i = 1; i < b;i++){ ans *= b; } printf("%f", ans); }