<gh_stars>0
# Write a Python program to get the n (non-negative integer) copies of the first 2 characters of a given string.
# Return the n copies of the whole string if the length is less than 2

s = input("Enter a string: ")


def copies(string, number):
    copy = ""
    for i in range(number):
        copy += string[0] + string[1]
    return copy


if len(s) > 2:
    n = int(input("Enter the number of copies: "))
    print(copies(s, n))
else:
    print(s + s)

# Write a Python program to get the n (non-negative integer) copies of the first 2 characters of a given string.
# Return the n copies of the whole string if the length is less than 2

s = input("Enter a string: ")


def copies(string, number):
    copy = ""
    for i in range(number):
        copy += string[0] + string[1]
    return copy


if len(s) > 2:
    n = int(input("Enter the number of copies: "))
    print(copies(s, n))
else:
    print(s + s)
# Write a Python program to get the n (non-negative integer) copies of the first 2 characters of a given string. # Return the n copies of the whole string if the length is less than 2