XXI Berland Annual Fair is coming really soon! Traditionally fair consists of n booths, arranged in a circle. The booths are numbered 1 through n clockwise with n being adjacent to 1. The i-th booths sells some candies for the price of a_i burles per item. Each booth has an unlimited supply of candies.

Polycarp has decided to spend at most T burles at the fair. However, he has some plan in mind for his path across the booths:

  * at first, he visits booth number 1; 
  * if he has enough burles to buy exactly one candy from the current booth, then he buys it immediately; 
  * then he proceeds to the next booth in the clockwise order (regardless of if he bought a candy or not). 



Polycarp's money is finite, thus the process will end once he can no longer buy candy at any booth.

Calculate the number of candies Polycarp will buy.

Input

The first line contains two integers n and T (1 ≤ n ≤ 2 ⋅ 10^5, 1 ≤ T ≤ 10^{18}) — the number of booths at the fair and the initial amount of burles Polycarp has.

The second line contains n integers a_1, a_2, ..., a_n (1 ≤ a_i ≤ 10^9) — the price of the single candy at booth number i.

Output

Print a single integer — the total number of candies Polycarp will buy.

Examples

Input

3 38
5 2 5


Output

10


Input

5 21
2 4 100 2 6


Output

6

Note

Let's consider the first example. Here are Polycarp's moves until he runs out of money:

  1. Booth 1, buys candy for 5, T = 33; 
  2. Booth 2, buys candy for 2, T = 31; 
  3. Booth 3, buys candy for 5, T = 26; 
  4. Booth 1, buys candy for 5, T = 21; 
  5. Booth 2, buys candy for 2, T = 19; 
  6. Booth 3, buys candy for 5, T = 14; 
  7. Booth 1, buys candy for 5, T = 9; 
  8. Booth 2, buys candy for 2, T = 7; 
  9. Booth 3, buys candy for 5, T = 2; 
  10. Booth 1, buys no candy, not enough money; 
  11. Booth 2, buys candy for 2, T = 0. 



No candy can be bought later. The total number of candies bought is 10.

In the second example he has 1 burle left at the end of his path, no candy can be bought with this amount.
import java.util.*;
import java.io.*;

public class Atcoder {
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////                                                                                                               /////////
////////                                                                                                               /////////
////////   HHHH        HHHH  EEEEEEEEEEEEE   MMMM          MMMM         OOOOOO             SSSSSSS      EEEEEEEEEEEEE  /////////
////////   HHHH        HHHH  EEEEEEEEEEEEE   MMMMMM      MMMMMM      OOO      OOO        SSSS   SSS     EEEEEEEEEEEEE  /////////
////////   HHHH        HHHH  EEEEE           MMMM MMM  MMM MMMM    OOO          OOO    SSSS       SSS   EEEEE          /////////
////////   HHHH        HHHH  EEEEE           MMMM  MMMMMM  MMMM   OOO            OOO   SSSS             EEEEE          /////////
////////   HHHH        HHHH  EEEEE           MMMM          MMMM  OOO              OOO   SSSSSSS         EEEEE          /////////
////////   HHHHHHHHHHHHHHHH  EEEEEEEEEEE     MMMM          MMMM  OOO              OOO      SSSSSS       EEEEEEEEEEE    /////////
////////   HHHHHHHHHHHHHHHH  EEEEEEEEEEE     MMMM          MMMM  OOO              OOO         SSSSSSS   EEEEEEEEEEE    /////////
////////   HHHH        HHHH  EEEEE           MMMM          MMMM   OOO            OOO              SSSS  EEEEE          /////////
////////   HHHH        HHHH  EEEEE           MMMM          MMMM    OOO          OOO     SSS       SSSS  EEEEE          /////////
////////   HHHH        HHHH  EEEEEEEEEEEEE   MMMM          MMMM      OOO      OOO        SSS    SSSS    EEEEEEEEEEEEE  /////////
////////   HHHH        HHHH  EEEEEEEEEEEEE   MMMM          MMMM         OOOOOO             SSSSSSS      EEEEEEEEEEEEE  /////////
////////                                                                                                               /////////
////////                                                                                                               /////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    static int [][]memo;
    static char[]s;
    static int modo = (int) (1e9+7);
    static int dp(int mod,int idx){
        if (idx==s.length){
            return mod==5?1:0;
        }
        if (memo[mod][idx]!=-1)return memo[mod][idx];
        int nmod=mod*10;
        nmod%=13;
        int ans =0;
        if (s[idx]=='?')
        for (int i =0;i<10;i++){
            ans+=dp((nmod+i)%13,idx+1);
            ans%=modo;
        }
        else{
            ans=dp((nmod+(s[idx]-'0'))%13,idx+1)%modo;
        }
        return memo[mod][idx]=ans;
    }
    public static void main(String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        //FileWriter f = new FileWriter("C:\\Users\\Ibrahim\\out.txt");
        PrintWriter pw = new PrintWriter(System.out);
        int n = sc.nextInt();
        long t = sc.nextLong();
        long sum = 0;
        int[]a= new int[n];
        for (int i =0;i<n;i++){
            a[i]=sc.nextInt();
            sum+=a[i];
        }
        long all= t/sum;
        all*=n;
        long rem=t%sum;
       //pw.println(rem);
        Queue<Integer>used= new LinkedList<>();
        for (int i =0;i<n;i++)((LinkedList<Integer>) used).add(i);
        while (!used.isEmpty()){
            int x = used.size();
            while (x-->0){
                int idx= used.poll();
                if (a[idx]<=rem){
                    rem-=a[idx];
                    all++;
                    ((LinkedList<Integer>) used).add(idx);
                }
                else sum-=a[idx];
            }
            if (sum>0&&sum<=rem){
                all+=(rem/sum)*used.size();
                rem%=sum;
            }
        }
        pw.println(all);

        pw.flush();
    }

    static class Scanner {
        StringTokenizer st;
        BufferedReader br;

        public Scanner(FileReader r) {
            br = new BufferedReader(r);
        }

        public Scanner(InputStream s) {
            br = new BufferedReader(new InputStreamReader(s));
        }

        public String next() throws IOException {
            while (st == null || !st.hasMoreTokens())
                st = new StringTokenizer(br.readLine());
            return st.nextToken();
        }

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

        public long nextLong() throws IOException {
            return Long.parseLong(next());
        }

        public String nextLine() throws IOException {
            return br.readLine();
        }

        public double nextDouble() throws IOException {
            String x = next();
            StringBuilder sb = new StringBuilder("0");
            double res = 0, f = 1;
            boolean dec = false, neg = false;
            int start = 0;
            if (x.charAt(0) == '-') {
                neg = true;
                start++;
            }
            for (int i = start; i < x.length(); i++)
                if (x.charAt(i) == '.') {
                    res = Long.parseLong(sb.toString());
                    sb = new StringBuilder("0");
                    dec = true;
                } else {
                    sb.append(x.charAt(i));
                    if (dec)
                        f *= 10;
                }
            res += Long.parseLong(sb.toString()) / f;
            return res * (neg ? -1 : 1);
        }

        public boolean ready() throws IOException {
            return br.ready();
        }
    }

}
