#coding=utf-8 if __name__=="__main__": budget,n_goods=[int(i) for i in input().split()] budget=budget//10 prime=[] #主件 prime_pos=[] prime_affi={} ...