x = 0 for n in range(1,13): for a in range(0,3): for b in range(0,10): if n == a + b: x = x + 1 else: x = x print(x+1)