import java.util.*; import java.io.*; import java.awt.geom.*; import java.math.*; public class No0010 { static final Scanner in = new Scanner(System.in); static final PrintWriter out = new PrintWriter(System.out,false); static boolean debug = false; static void solve() { int n = in.nextInt(); int t = in.nextInt(); int[] a = new int[n]; for (int i=0; i 0) { dp[i+1][j+a[i+1]] = sb; } } } if (j * a[i+1] < t+1) { if (dp[i+1][j*a[i+1]] == null) { dp[i+1][j*a[i+1]] = new StringBuilder(dp[i][j]); dp[i+1][j*a[i+1]].append('*'); } else { StringBuilder sb = new StringBuilder(); sb.append(dp[i][j]).append('*'); if (sb.toString().compareTo(dp[i+1][j*a[i+1]].toString()) > 0) { dp[i+1][j*a[i+1]] = sb; } } } } } out.println(dp[n-1][t]); } public static void main(String[] args) { debug = args.length > 0; long start = System.currentTimeMillis(); solve(); out.flush(); long end = System.currentTimeMillis(); dump((end-start) + "ms"); in.close(); out.close(); } static void dump(Object... o) { if (debug) System.err.println(Arrays.deepToString(o)); } }