Doughnuts in a Box


Submit solution

Points: 100
Time limit: 5.0s
Memory limit: 256M

Author:
Problem type

Problem Statement

Rana likes doughnuts. She went to the doughnuts shop to get doughnuts for her friends. The shop sells the doughnuts in 4 types of boxes.

  • single box: can hold 1 doughnut.
  • half dozen box: can hold 6 doughnuts.
  • dozen box: can hold 12 doughnuts.
  • party box: 4 can hold 24 doughnuts.

Help Rana know how many boxes does she need based on the box type and the number of doughnuts she wants to buy.
Note: The shop has a policy that the number of bought doughnuts must always be exactly enough to fill all boxes.


Constraints

box-type is a string that matches one of the following strings:

  • single
  • half
  • dozen
  • party

D is an integer that represents the number of doughnuts.


Input

Input is in the following format:

box-type
D

Output

Print the total number of boxes required as an integer number.


Samples

Sample 1

Input Output
single
12
12

Sample 2

Input Output
half
12
2

Sample 3

Input Output
dozen
12
1

Comments

There are no comments at the moment.