import sys
#input = sys.stdin.readline
input = lambda: sys.stdin.readline().rstrip()
s = input()
print(len(s))
for x in s:
print(ord(x))
aW1wb3J0IHN5cwojaW5wdXQgPSBzeXMuc3RkaW4ucmVhZGxpbmUKaW5wdXQgPSBsYW1iZGE6IHN5cy5zdGRpbi5yZWFkbGluZSgpLnJzdHJpcCgpCnMgPSBpbnB1dCgpCnByaW50KGxlbihzKSkKZm9yIHggaW4gczoKICAgIHByaW50KG9yZCh4KSk=