#!/usr/bin/env python3

# SPDX-FileCopyrightText: Chris Pressey, the creator of this work, has dedicated it to the public domain.
# For more information, please refer to <https://unlicense.org/>
# SPDX-License-Identifier: Unlicense

import sys

WIDTH=120

for line in sys.stdin:
    line = line.rstrip('\n')
    while len(line) > WIDTH:
        print(line[:WIDTH])
        line = line[WIDTH:]
    print(line)

# 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
