DCEPC13E - World Cup 2015

no tags 

Amit is a big fan of cricket. His friend Subham challenges him to guess the total score at some points in an inning of an ODI match. If his guesses will be correct he will get a chance to watch the world cup final in MCG. Now, Amit being a big fan of cricket don't want to miss this opportunity. So, he first analyses some previous matches and comes to following fact: on an average, in a 50-over inning, a team plays 120 balls for singles, 30 for doubles, 30 for fours, 10 for triples, 10 for sixes, 10 for loss of wicket and leaves remaining 90. Now, he tells you this fact and asks you to tell the expected score. Being a very good programmer, your task is to maximize Amit's chances to win this challenge.

Note: 0, 1, 2, 3, 4, 6 and wkt are the only possible outcomes of every ball bowled in the inning.

For those who are not familiar with cricket game: An over consist of 6 balls. Inning ends if either overs are finished or team has lost all the 10 wickets.

Input

There is a single positive integer T on the first line of input. It stands for the number of queries.

Each query consists of an integer N which stands for over number at which you need to guess the team total.

Output

For every query output the expected team total in a single line. Format for total: runs/wkts.

Note: print the nearest integer to the decimal.

Constraints

1 <= T <= 10

1 <= N <= 50

Example

Input:
2
1
2

Output:
8/0
16/0

hide comments
Rajat De: 2015-03-12 08:20:29

if the answer comes 5.5 do we need to report 6 or 5?

vank: 2015-03-10 20:18:58

run or wickets or both are nearest integer to the decimal?

priyank: 2015-03-10 14:39:23

what this lines means- leaves remaining 90....Is this 90 balls are dot balls or team all out at 210 balls????

Last edit: 2015-03-10 14:42:54

Added by:dce coders
Date:2015-03-06
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:MAWK BC C-CLANG C NCSHARP CSHARP C++ 4.3.2 CPP CPP14 CPP14-CLANG C99 COFFEE D-CLANG D-DMD DART ELIXIR FANTOM FORTH JAVA JULIA KTLN NIM OBJC OBJC-CLANG OCT PICO PROLOG PYTHON PYPY3 PYTHON3 PY_NBC R RACKET RUST CHICKEN SQLITE SWIFT UNLAMBDA