Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = list(input())
- x = 1
- for i in range(len(a)):
- a[i] = int(a[i])
- for i in range(0,len(a),2):
- if i+1 == len(a):
- break
- else:
- if (a[i]*10)+a[i+1] > 33:
- x = x * 1
- else:
- if (a[i]*10)+a[i+1] < 10:
- x = x*1
- else:
- x = x*2
- kol = x
- x = 1
- for i in range(1,len(a),2):
- if i+1 == len(a):
- break
- else:
- if (a[i]*10)+a[i+1] > 33:
- x = x * 1
- else:
- if (a[i]*10)+a[i+1] < 10:
- x = x*1
- else:
- x = x*2
- kol = kol + x
- print(kol-1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement