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