# Don't change the following lines
import math

number_of_cycles = float(input("Number of cycles: "))
number_of_lines = int(input("Stretched over how many lines? "))

radians_per_line = number_of_cycles * 2 * math.pi / number_of_lines

# ...now fill in the rest
for x in range(number_of_lines):
    radians = x * radians_per_line
    sin = math.sin(radians)
    output = 0 +((40 - 0)/(1.0 - -1.0))*(sin - -1.0)
    for i in range(round(output)):
        print("x", end="")
    print()
    
    
    