#include<bits/stdc++.h>
#define EPS (1e-15)
using namespace std;

int K,R,L;
double P,E,T,ans,cnt;

void func(int k,double l,double r,double p){
  double h=(l+r)/2;
  cnt++;
  if(l-(T+E)>EPS||T-E-r>EPS)return;
  else if(l-(T-E)>=EPS&&T+E-r>=EPS){
    ans+=p;
    return;
  }
  if(k==K&&E-abs(h-T)>=EPS){
    ans+=p;
    return;
  }
  if(k==K)return;
  if(T<=h){
    func(k+1,l,h,p*(1-P));
    func(k+1,h,r,p*P);
  }else{
    func(k+1,l,h,p*P);
    func(k+1,h,r,p*(1-P));
  }
}

int main(){
  cin>>K>>R>>L>>P>>E>>T;
  func(0,R,L,1);
  //cout<<cnt<<endl;
  printf("%.15f\n",ans);
  return 0;
}