import java.math.BigInteger; import java.util.Scanner; import java.io.PrintWriter; import java.util.ArrayList; public class main{ static int n; static int t; static int[] a; static boolean[][] dp; static void dfs(int now,int sum,ArrayList result){ //System.out.println("now="+now+" sum="+sum); //for(char g:result){ //System.out.print(g); //} if(now==n-1){ if(sum==t){ for(char g:result){ System.out.print(g); } //System.out.println("end"); System.exit(0); } return; } if(sum>t)return; if(dp[now][sum])return; dp[now][sum]=true; result.add('+'); dfs(now+1,sum+a[now+1],result); result.remove(result.size()-1); result.add('*'); dfs(now+1,sum*a[now+1],result); result.remove(result.size()-1); return; } public static void main(String args[]){ Scanner sc=new Scanner(System.in); n=sc.nextInt(); t=sc.nextInt(); a=new int[n]; for(int i=0;i()); sc.close(); } }