# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# +
'''Input:
1 2 1 3 4 2 3
3 2
4 1 1

Output:
3 4 4 3
2 1'''
s = input("Enter string of integers: ").split()
k = int(input("Enter size of window: "))

temp = []
for i in range(len(s)-k+1):
    temp.append(len(set(s[i:i+k])))
    
print(temp)


# -



StarcoderdataJupyterScriptsDedupFiltered