This page is still under construction.

Parts of this page are still being built. What you see may change.

Tawla

Time limit3sMemory limit256 MB

Summary
For each pair of dice rolls, print the combined nickname with the larger value first, using special names for doubles and for 5 and 6.
Level

Easy1 of 10

Topics
Implementation
Solved
No attempts yet

Problem

Sanggeun and Changyoung play a dice game. Each die is a cube numbered 1 to 6, and every face has a nickname.

  • 1: Yakk
  • 2: Doh
  • 3: Seh
  • 4: Ghar
  • 5: Bang
  • 6: Sheesh

Each player rolls one die. If the two numbers differ, the players call the nickname of the larger number first and the nickname of the smaller number second. Rolling 1 and 2 gives "Doh Yakk", rolling 3 and 5 gives "Bang Seh", and rolling 6 and 4 gives "Sheesh Ghar".

If the two numbers are equal, the players use these names instead.

  • 1 and 1: Habb Yakk
  • 2 and 2: Dobara
  • 3 and 3: Dousa
  • 4 and 4: Dorgy
  • 5 and 5: Dabash
  • 6 and 6: Dosh

The pair 5 and 6 is the one exception. "Sheesh Bang" sounds bad, so the players call it "Sheesh Beesh".

Given the two numbers, print the call that Sanggeun and Changyoung shout.

Input

The first line has the number of tests TT. (1≤T≤1001 \le T \le 100)

Each of the next TT lines has two numbers aa and bb separated by a space. (1≤a,b≤61 \le a, b \le 6)

Output

For each test, print one line with Case n: followed by the call. nn is the test number, starting at 1.

Examples4

  1. Example 1

    Input
    3
    1 2
    2 3
    3 4
    
    Expected output
    Case 1: Doh Yakk
    Case 2: Seh Doh
    Case 3: Ghar Seh
    
  2. Example 2

    Input
    6
    1 1
    2 2
    3 3
    4 4
    5 5
    6 6
    
    Expected output
    Case 1: Habb Yakk
    Case 2: Dobara
    Case 3: Dousa
    Case 4: Dorgy
    Case 5: Dabash
    Case 6: Dosh
    
  3. Example 3

    Input
    8
    5 6
    6 5
    6 4
    4 6
    5 4
    4 5
    6 6
    5 5
    
    Expected output
    Case 1: Sheesh Beesh
    Case 2: Sheesh Beesh
    Case 3: Sheesh Ghar
    Case 4: Sheesh Ghar
    Case 5: Bang Ghar
    Case 6: Bang Ghar
    Case 7: Dosh
    Case 8: Dabash
    
  4. Example 4

    Input
    1
    1 1
    
    Expected output
    Case 1: Habb Yakk