1 #include<iostream>
2 #include<algorithm>
3 #include<cstdio>
4 #include<cstring>
5 #include<cmath>
6 #include<cstdlib>
7 #include<vector>
8 using namespace std;
9 typedef long long ll;
10 typedef long double ld;
11 typedef pair<int,int> pr;
12 const double pi=acos(-1);
13 #define rep(i,a,n) for(int i=a;i<=n;i++)
14 #define per(i,n,a) for(int i=n;i>=a;i--)
15 #define Rep(i,u) for(int i=head[u];i;i=Next[i])
16 #define clr(a) memset(a,0,sizeof(a))
17 #define pb push_back
18 #define mp make_pair
19 #define fi first
20 #define sc second
21 #define pq priority_queue
22 #define pqb priority_queue <int, vector<int>, less<int> >
23 #define pqs priority_queue <int, vector<int>, greater<int> >
24 #define vec vector
25 ld eps=1e-9;
26 ll pp=1000000007;
27 ll mo(ll a,ll pp){if(a>=0 && a<pp)return a;a%=pp;if(a<0)a+=pp;return a;}
28 ll powmod(ll a,ll b,ll pp){ll ans=1;for(;b;b>>=1,a=mo(a*a,pp))if(b&1)ans=mo(ans*a,pp);return ans;}
29 void fre() { freopen("c://test//input.in", "r", stdin); freopen("c://test//output.out", "w", stdout); }
30 //void add(int x,int y,int z){ v[++e]=y; next[e]=head[x]; head[x]=e; cost[e]=z; }
31 int dx[5]={0,-1,1,0,0},dy[5]={0,0,0,-1,1};
32 ll read(){ ll ans=0; char last=‘ ‘,ch=getchar();
33 while(ch<‘0‘ || ch>‘9‘)last=ch,ch=getchar();
34 while(ch>=‘0‘ && ch<=‘9‘)ans=ans*10+ch-‘0‘,ch=getchar();
35 if(last==‘-‘)ans=-ans; return ans;
36 }
37 #define N 500005
38 ll gcd(ll a,ll b){
39 return (b==0)?a:gcd(b,a%b);
40 }
41 ll cnta,cntb;
42 int a[N],b[N],c[N],sum[N];
43 void mega(int l,int r){
44 int mid=(l+r)>>1,i=l,j=mid+1,k=0;
45 while (i<=mid && j<=r){
46 while (a[i]<a[j] && i<=mid){
47 c[++k]=a[i]; i++;
48 }
49 while(a[i]>=a[j] && j<=r){
50 c[++k]=a[j]; j++; cnta+=(ll)(mid-i+1);
51 }
52 }
53 while (i<=mid) c[++k]=a[i],i++;
54 while (j<=r) c[++k]=a[j],j++;
55 for (int i=1;i<=k;i++)
56 a[i+l-1]=c[i];
57 }
58 void megb(int l,int r){
59 int mid=(l+r)>>1,i=l,j=mid+1,k=0;
60 while (i<=mid && j<=r){
61 while (b[i]<=b[j] && i<=mid){
62 c[++k]=b[i]; i++;
63 }
64 while(b[i]>b[j] && j<=r){
65 c[++k]=b[j]; j++; cntb+=(ll)(mid-i+1);
66 }
67 }
68 while (i<=mid) c[++k]=b[i],i++;
69 while (j<=r) c[++k]=b[j],j++;
70 for (int i=1;i<=k;i++)
71 b[i+l-1]=c[i];
72 }
73 void msort(int l,int r){
74 if (l==r) return;
75 int mid=(l+r)>>1;
76 msort(l,mid);
77 msort(mid+1,r);
78 mega(l,r);
79 megb(l,r);
80 }
81 int main(){
82 int n=read(),l=read(),r=read();
83 for (int i=1;i<=n;i++) {
84 int a_=read();
85 sum[i]=sum[i-1]+a_;
86 a[i]=l*i-sum[i];
87 b[i]=r*i-sum[i];
88 }
89 msort(0,n);
90 ll B=(ll)n*((ll)n+1LL)/2LL;
91 ll A=cnta-cntb;
92 ll C=gcd(A,B);
93 if (A==0) printf("0");
94 else if (A==B) printf("1");
95 else printf("%lld/%lld",A/C,B/C);
96 return 0;
97 }