I am trying to figure out why the following is not correctly calculating

```
 x = Math.pow(w,e);

```

When I calculate it in Java, I get 1075, but I am supposed to get 779.

```
   int e = 17;
   int w = 803;
   int n = 2773;
   double x = 0;
        x = Math.pow(w,e) % n;
        System.out.println(x);

```