#!/usr/bin/python import sys; def getLetterNum(num): switch(num): if(num == 1): return 3; elif(num == 2): return 3; elif(num == 3): return 5; elif(num == 4): return 3; elif(num == 5): return 3; elif(num == 6): return 3; elif(num == 7): return 3; elif(num == 8): return 3; elif(num == 9): return 3; elif(num == 10): return 3; elif(num == 11): return 3; elif(num == 2): return 3; elif(num == 2): return 3; elif(num == 2): return 3; elif(num == 2): return 3; elif(num == 2): return 3; elif(num == 2): return 3; elif(num == 2): return 3; elif(num == 2): return 3; elif(num == 2): return 3; elif(num == 2): return 3; def countLetters(start, end): count = 0; for i in range(start, end+1): count += getLetterNum(i); return count; start = int(sys.argv[1]); end = int(sys.argv[2]); print "Result is " + str(countLetters(start,end));