LED Sign


Submit solution

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

Author:
Problem type

Problem Statement

You work in a shop and want to set a sign outside the shop using LED pannels that will display a random message combined of 5 numbers / characters. You don't have that many LED lights around, so you want to plan before you set the sign. Based on the picture, create a program that will calculate the number of LED lights required for a given character / number.


Constraints

  • C1 is character or a number from the following list (case sensitive):
1 2 3 4 5 6 7 8 9 0
A B C D E F G H I J
K L M N O P Q R S T
    U V W X Y Z

Input

Input is in the following format:

C1

Output

Print a single integer which is the total number of LEDs required to display the 5 characters.


Samples

Sample 1

Input Output
G 6

Sample 2

Input Output
I 6

Sample 3

Input Output
T 6

Sample 4

Input Output
1 2

Comments

There are no comments at the moment.