# your code goes here

import re

postalCode = " 56 Winding Way, Thunder Bay, Ontario, D56 4A3 "

#read First Line
line = postalCode

if re.search("[ABCEGHJKLMNPRSTVXY][0-9][ABCEGHJKLMNPRSTVWXYZ] ?[0-9][ABCEGHJKLMNPRSTVWXYZ][0-9]", line , re.IGNORECASE | re.DOTALL):
	print 'Match found - valid Canadian address: ', line
else:
	print 'Error - no match - invalid Canadian address:', line
