Problem: It turns out that you are a great fan of rock band AC/PE. Peter learned that and started the following game: he plays the first song of the list of n songs of the group, and you have to find out the name of the song. After you tell the song name, Peter immediately plays the following song in order, and so on.

The i-th song of AC/PE has its recognizability pi. This means that if the song has not yet been recognized by you, you listen to it for exactly one more second and with probability of pi percent you recognize it and tell it's name. Otherwise you continue listening it. Note that you can only try to guess it only when it is integer number of seconds after the moment the song starts playing.

In all AC/PE songs the first words of chorus are the same as the title, so when you've heard the first ti seconds of i-th song and its chorus starts, you immediately guess its name for sure.

For example, in the song Highway To Red the chorus sounds pretty late, but the song has high recognizability. In the song Back In Blue, on the other hand, the words from the title sound close to the beginning of the song, but it's hard to name it before hearing those words. You can name both of these songs during a few more first seconds.

Determine the expected number songs of you will recognize if the game lasts for exactly T seconds (i. e. you can make the last guess on the second T, after that the game stops).

If all songs are recognized faster than in T seconds, the game stops after the last song is recognized.

Input

The first line of the input contains numbers n and T (1 ≤ n ≤ 5000, 1 ≤ T ≤ 5000), separated by a space. Next n lines contain pairs of numbers pi and ti (0 ≤ pi ≤ 100, 1 ≤ ti ≤ T). The songs are given in the same order as in Petya's list.

Output

Output a single number — the expected number of the number of songs you will recognize in T seconds. Your answer will be considered correct if its absolute or relative error does not exceed 10 - 6.

Examples

Input

2 2
50 2
10 1


Output

1.500000000


Input

2 2
0 2
100 2


Output

1.000000000


Input

3 3
50 3
50 2
25 2


Output

1.687500000


Input

2 2
0 2
0 2


Output

1.000000000

Solution (in JAVA):

Solution:
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Locale;
import java.util.StringTokenizer;



public final class CF_NameThatTune {

	void log(int[] X){
		int L=X.length;
		for (int i=0;i<L;i++){
			logWln(X[i]+" ");
		}
		log("");
	}

	void log(double[] X){
		int L=X.length;
		for (int i=0;i<L;i++){
			logWln(X[i]+" ");
		}
		log("");
	}

	void log(long[] X){
		int L=X.length;
		for (int i=0;i<L;i++){
			logWln(X[i]+" ");
		}
		log("");
	}
	void log(Object[] X){
		int L=X.length;
		for (int i=0;i<L;i++){
			logWln(X[i]+" ");
		}
		log("");
	}


	void log(Object o){
		logWln(o+"\n");
	}

	void logWln(Object o){
		//System.out.print(o);
		outputWln(o);

	}
	void info(Object o){
		System.out.println(o);
		//output(o);
	}

	void output(Object o){

		outputWln(""+o+"\n");

	}

	void outputWln(Object o){
		// System.out.print(o);

		try {
			out.write(""+ o);
		} catch (Exception e) {

		}
	}


	String next(){
		while (st== null|| !st.hasMoreTokens()) {
			try {
				st=new StringTokenizer(in.readLine());
			} catch (Exception e) {
			}
		}
		return st.nextToken();
	}

	String nextLine(){
		try {
			return in.readLine();
		} catch (Exception e) {
		}
		return null;
	}

	int nextInt(){
		return Integer.parseInt(next());
	}


	long nextLong(){
		return Long.parseLong(next());


	}

	double nextDouble(){
		return Double.parseDouble(next());


	}



	// Global vars
	StringTokenizer st;
	BufferedReader in;
	BufferedWriter out;
	int N,T;
	double[] p;
	int[] t;


	void solveOld(){
		double[][] prob=new double[N][T+1];
		// prob[x][u] = probabilité qu'il faille u secondes pour trouver les x chansons

		for (int x=0;x<N;x++){
			if (x==0){
				double q=p[x];
				for (int u=1;u<=T;u++){
					if (u<=t[x]) {
						prob[x][u]=q;
						q*=(1-p[x]);
					} else
						prob[x][u]=0;
				}
			} else {
				double[][] tmp=new double[N][T+1];
				for (int u=1;u<=T;u++){
					double q=p[x];
					for (int v=1;u+v<=T;v++){
						if (v<=t[x]) {
							tmp[x][u+v]+=prob[x-1][u]*q;
							q*=(1-p[x]);}
					}
				}
			}
		}

	}

	void solveBug(){
		double[][] prob=new double[N][T+1];
		// prob[x][u] = nombre probable de chansons parmi x trouvéees au bout de u secondes

		for (int x=0;x<N;x++){
			double q=1-p[x];
			double w=1;
			for (int u=0;u<t[x];u++)
				w*=q;
			if (x==0){
				//log("case 1");
				for (int u=1;u<=T;u++){
					if (u<t[x]) {
						prob[x][u]=1-q;
						q*=(1-p[x]);
					} else
						prob[x][u]=1;
				}
				//log(prob[x]);
			} else {
				//log("case 2");
				double[][] tmp=new double[N][T+1];
				for (int u=1;u<=T;u++){
					q=1-p[x];
					for (int v=1;u+v<=T;v++){
						if (v<t[x]) {
							prob[x][u+v]+=prob[x-1][u]*(1-q);
							q*=(1-p[x]);}
						else {
							prob[x][u+v]+=prob[x-1][u];
						}
					}
				}
			}
		}
		for (int x=0;x<N;x++)
			log(prob[x]);
		log("////");
	}


	void solveSlow(){
		double[][] prob=new double[N+1][T+1];
		//prob[x][u]= probabilité que trouve la xieme chanson à l'instant u

		prob[0][0]=1;

		for (int x=1;x<=N;x++){

			if (x==1){
				double base=1;

				//log("case 1");
				for (int u=1;u<=T && u<=t[x-1];u++){
					if (u<t[x-1]) {
						prob[x][u]+=base*p[x-1];
						base*=(1-p[x-1]);
					} else {
						prob[x][u]+=base;
					}
				}

			} else {
				//log("case 2");
				for (int u=1;u<=T;u++){
					double base=prob[x-1][u];
					for (int v=1;(u+v<=T) && (v<=t[x-1]);v++){
						if (v<t[x-1]) {
							prob[x][u+v]+=base*p[x-1];
							base*=(1-p[x-1]);
						}
						else {
							prob[x][u+v]+=base;
						}
					}
				}
			}
		}

		double last=0;
		double tot=0;
		for (int x=1;x<=N;x++)
			log(prob[x]);
		for (int x=N;x>=1;x--) {
			double sum=0;
			for (int t=1;t<=T;t++)
				sum+=prob[x][t];
			//log(sum+" "+(sum*x));
			tot+=(sum-last)*x;
			last=sum;
		}

		output(tot);

	}

	
	void solveAlt(){
		double[][] prob=new double[N+1][T+1];
		//prob[x][u]= probabilité que trouve la xieme chanson à l'instant u

		prob[0][0]=1;

		for (int x=1;x<=N;x++){
			//log("=== x:"+x);
			if (x==1){
				double base=1;

				//log("case 1");
				for (int u=1;u<=T && u<=t[x-1];u++){
					if (u<t[x-1]) {
						prob[x][u]+=base*p[x-1];
						base*=(1-p[x-1]);
					} else {
						prob[x][u]+=base;
					}
				}

			} else {
				//log("case 2");
				double window=0;
				
				double exit=Math.pow(1-p[x-1],t[x-1]);
				int l=1;
				for (int r=1;r+1<=T;r++){
					
					window+=prob[x-1][r];
			//		log("window:"+window);
					prob[x][r+1]+=window*p[x-1];
					window*=(1-p[x-1]);
					if (r>=t[x-1]){
						window-=prob[x-1][l]*exit;
						prob[x][r+1]+=prob[x-1][l]*exit; // ((1-p)^(t)+(1-p)^(t-1)*p=(1-p)^(t-1)
						l++;
					}
				}
				
				
			}
		}

		double last=0;
		double tot=0;
		
		for (int x=N;x>=1;x--) {
			double sum=0;
			for (int t=1;t<=T;t++)
				sum+=prob[x][t];
			//log(sum+" "+(sum*x));
			tot+=(sum-last)*x;
			last=sum;
		}

		output(tot);

		
		
	}
	
	void solveAlt2(){
	
		//prob[x][u]= probabilité que trouve la xieme chanson à l'instant u

		double[] p1=new double[T+1];
		double[] p2=new double[T+1];
		double mySum=0;
	
		for (int x=1;x<=N;x++){
			//log("=== x:"+x);
			if (x==1){
				Arrays.fill(p1,0);
				double base=1;

				//log("case 1");
				for (int u=1;u<=T && u<=t[x-1];u++){
					if (u<t[x-1]) {
						p1[u]+=base*p[x-1];
						base*=(1-p[x-1]);
					} else {
						p1[u]+=base;
					}
				}
				for (int t=1;t<=T;t++)
					mySum+=p1[t];

			} else {
				//log("case 2");
				Arrays.fill(p2,0);
				double window=0;
				
				double exit=Math.pow(1-p[x-1],t[x-1]);
				int l=1;
				for (int r=1;r+1<=T;r++){
					
					window+=p1[r];
			//		log("window:"+window);
					p2[r+1]+=window*p[x-1];
					window*=(1-p[x-1]);
					if (r>=t[x-1]){
						window-=p1[l]*exit;
						p2[r+1]+=p1[l]*exit; // ((1-p)^(t)+(1-p)^(t-1)*p=(1-p)^(t-1)
						l++;
					}
				}
				
				double[] tmp=p1;
				p1=p2;
				p2=tmp;		
				//log(p1);
				for (int t=1;t<=T;t++)
					mySum+=p1[t];
				
			}
		}
		
		

		output(mySum);

		
		
	}
	
	


	void process() throws Exception {

		Locale.setDefault(Locale.US);

		out = new BufferedWriter(new OutputStreamWriter(System.out));
		in=new BufferedReader(new InputStreamReader(System.in));

		//test();
		N=nextInt();
		T=nextInt();
		p=new double[N];
		t=new int[N];
		for (int i=0;i<N;i++){
			p[i]=nextInt();
			p[i]/=100;
			t[i]=nextInt();
		}

		
		solveAlt2();
	
		
		try {
			out.close();
		}
		catch (Exception e){}


	}



	public static void main(String[] args) throws Exception {
		CF_NameThatTune J=new CF_NameThatTune();

		J.process();


	}


}