Golf

Story

On Groundhog Day, Xorin decided to take all N of his TakeOff friends on a golf course. He then divides them into groups of 4 players, any way he wants, respecting the following criteria:

  • Players' order inside a group is not relevant (groups are defined by the set of players contained, not by their order). For simplicity, we will consider that a group is an ordered set of size 4.
  • The order of the groups is also not relevant (i.e. configurations 1234/5678 and 5678/1234 are identical, and should not be counted twice).

However, in his attempt to stay true to the movie plot (as any Bill Murray fan would), Xorin reenacted this scenario for R consecutive days, choosing a configuration each day (not necessarily a new one).

Problem

What is the total number of ways Xorin can split the N golfers in groups of 4, over the course of R days?

The result can be a very large number. Instead of calculating the actual value, you should write a formula that, when evaluated, returns the number of possibilities.

Input

The input file contains two numbers separated by one space: N (the number of players) and R (the number of days).

Output

A formula that, when evaluated, returns the number of ways of dividing all golfers into N / 4 groups, over R days. The formula may only contain the characters 0123456789()*/+-^. No spaces are allowed. The formula may be followed by an optional newline.

Constraints

  • N is divisible by 4.
  • 4 ≤ N ≤ 60
  • 1 ≤ R ≤ 30
  • The output (including the optional final newline) must be at most 200 characters long.
  • a/b denotes the quotient of integer division. a^b is exponentiation.

Sample

InputOutput
8 25^3*8+15^2
8 17*5

In the 2nd example, the following are the 35 valid combinations:

  1. 1234/5678
  2. 1235/4567
  3. 1236/4578
  4. 1237/4568
  5. 1238/4567
  6. 1245/3678
  7. 1246/3578
  8. 1247/3568
  9. 1248/3567
  10. 1256/3478
  11. 1257/3468
  12. 1258/3467
  13. 1267/3458
  14. 1268/3457
  15. 1278/3456
  16. 1345/2678
  17. 1346/2578
  18. 1347/2568
  19. 1348/2567
  20. 1356/2478
  21. 1357/2468
  22. 1358/2467
  23. 1367/2458
  24. 1368/2457
  25. 1378/2456
  26. 1456/2378
  27. 1457/2368
  28. 1458/2367
  29. 1467/2358
  30. 1468/2357
  31. 1478/2356
  32. 1567/2348
  33. 1568/2347
  34. 1578/2346
  35. 1678/2345
Questions?

Sponsors Gold