#Lutece1727. Counting the Circles
Counting the Circles
Migrated from Lutece 1727 Counting the Circles
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
is an ACMer in .Due to the addiction of programming,he seldom talks with a girl.Of course,he doesn't have a girlfriend.When he came back home during the Spring Festival,his parents,grandparents,uncles and aunts were very worry about him.But every dog has its day,half year later,at LiRen Building ,he came across a Korean female programmer.He thought she is really attractive so he thirsted for chatting with her.But he didn't know how to begin the conversation and meanwhile he couldn't speak Korean at all. So he asked his Korean friend, for help. is an old driver in this respect,he sent Korean sentenses to and taught him how to read them.And then touched the girl's shoulder slightly and said:
an nyeong ha se yo
zeon i ssang gi i la go ham ni da
zi geum yeo za chin gu ga eop da
zi man nan neo ui wang za doe gu si peo yo
The girl was really shocked.She looked at 's sincere eyes and suddenly she felt his real heart.But she didn't want to say "" immediately so she wanted to give a test.She told :"As you know,there are many Korean characters consisting of a consonant letter 'ㅇ',which looks like a circle.I will number the characters in the sentenses you just said by hexadecimal.Every time I will give you the leftmost character's position and the rightmost character's position ,you should answer me how many circles are there in the section of your sentenses in ms.I will ask you times,if you get all the answer correct,I'm willing to give you a chance to build the relationship.But if you are wrong,I think we'd better not meet each other again cause I never ever want to have any connection with a suck programmer." thought this is just a piece of cake,so he invites you to write a program for him to solve this problem,the reward for you is his signature photo.Can you help him solve it?
Input
The input contains exactly test cases.
Each test case in a line contains two hexadecimal integer and .
Output
For each test case,print the answer on a separate line.
Samples
0 4
5 E
F N
4
4
2
Resources
( ⊙ o ⊙ )!