'''
Created on 12 Dec 2016

@author: hpcosta
'''

# https://www.hackerrank.com/challenges/matching-digits-non-digit-character

#10a10.2015452254 = true

import re
Regex_Pattern = r"^(\d{2}\D){2}\d{4}"   # Do not delete 'r'.
print(str(bool(re.search(Regex_Pattern, raw_input()))).lower())
98623856dc9d5b3163182401f93217f57a5464fc
<mask token>

<mask token>
print(str(bool(re.search(Regex_Pattern, raw_input()))).lower())

<mask token>
Regex_Pattern = '^(\\d{2}\\D){2}\\d{4}'
print(str(bool(re.search(Regex_Pattern, raw_input()))).lower())

<mask token>
import re
Regex_Pattern = '^(\\d{2}\\D){2}\\d{4}'
print(str(bool(re.search(Regex_Pattern, raw_input()))).lower())

'''
Created on 12 Dec 2016

@author: hpcosta
'''

# https://www.hackerrank.com/challenges/matching-digits-non-digit-character

#10a10.2015452254 = true

import re
Regex_Pattern = r"^(\d{2}\D){2}\d{4}"   # Do not delete 'r'.
print(str(bool(re.search(Regex_Pattern, raw_input()))).lower())