#!/usr/bin/python3
import random

def main():
	try:
		n=int(input("Dwse n:"))
	except Exception as e:
		print (str(e))
		exit(1)
	try:
		m=int(input("Dwse orio:"))
	except Exception as e:
		print (str(e))
		exit(1)
	ml=gen_lst(n)
	ml1=comp_lst(m,ml)
	print(ml,sep=",")
	print(ml1,seo=",")
def gen_lst(n):
	return [int(random.uniform(-100,100))for i in range(n)]
def comp_lst(m,ml):
	return[x for x in ml if x>m]

if __name__=="__main__":
	main()
