f = lambda x:`map(max,*x)`[2::5].split(' #')[0]
for s in (
'''E #This comment intentionally left blank
ac #
h s #
ecti #
on is #
one c #
haracte #
r longer #
than the #
last! #''',
'''4 #This number is 7
8 #
15 #That last comment is wrong.
16 #
23 #
42 #''',
'''Hello #Comment 1
world #Comment 2
, #Comment 3
how #Comment 4
are #Comment 5
you? #Comment 6''',
'''Prepare #
for... #
extra spaces! #'''):
print f(s.split('\n'))
ZiA9IGxhbWJkYSB4OmBtYXAobWF4LCp4KWBbMjo6NV0uc3BsaXQoJyAjJylbMF0KCmZvciBzIGluICgKCicnJ0UgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAjVGhpcyBjb21tZW50IGludGVudGlvbmFsbHkgbGVmdCBibGFuawogYWMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIwogICBoIHMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIwogICAgICBlY3RpICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIwogICAgICAgICAgb24gaXMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIwogICAgICAgICAgICAgICAgb25lIGMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIwogICAgICAgICAgICAgICAgICAgICBoYXJhY3RlICAgICAgICAgICAgICAgICAgICAgICAgIwogICAgICAgICAgICAgICAgICAgICAgICAgICAgciBsb25nZXIgICAgICAgICAgICAgICAgIwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhhbiB0aGUgICAgICAgIwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGFzdCEgIycnJywKCicnJzQgICAgICAgICAgI1RoaXMgbnVtYmVyIGlzIDcKIDggICAgICAgICAjCiAgMTUgICAgICAgI1RoYXQgbGFzdCBjb21tZW50IGlzIHdyb25nLgogICAgMTYgICAgICMKICAgICAgMjMgICAjCiAgICAgICAgNDIgIycnJywKCicnJ0hlbGxvICAgICAgICAgICAgICAgICAgICAgI0NvbW1lbnQgMQogICAgICB3b3JsZCAgICAgICAgICAgICAgICNDb21tZW50IDIKICAgICAgICAgICAsICAgICAgICAgICAgICAjQ29tbWVudCAzCiAgICAgICAgICAgICBob3cgICAgICAgICAgI0NvbW1lbnQgNAogICAgICAgICAgICAgICAgIGFyZSAgICAgICNDb21tZW50IDUKICAgICAgICAgICAgICAgICAgICAgeW91PyAjQ29tbWVudCA2JycnLAoKJycnUHJlcGFyZSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAjCiAgICAgICAgZm9yLi4uICAgICAgICAgICAgICAgICAgICAgICAgIwogICAgICAgICAgICAgICAgICAgICAgICBleHRyYSBzcGFjZXMhICMnJycpOgoKICAgIHByaW50IGYocy5zcGxpdCgnXG4nKSk=