import java.util.*;
public class Question5 {
  public static void main(String[] args) {
    Scanner stdin = new Scanner(System.in);
    System.out.println("Enter points, rebounds.");
    double points = stdin.nextInt();
    double rebounds = stdin.nextInt();

    double ans = Math.sqrt(Math.abs(Math.pow(points,5)-Math.pow(rebounds,5)));
    System.out.println("Power Rating = "+ans);

  }
}
