import copy
import numpy as np
# num_ma = 2;
# num_max = 5;
# action = 8
# for i in xrange(num_ma):
#     if action == num_ma * num_max:
#         break
#     else:
#         choose = (action + num_max*i)
#         if choose >= (num_ma * num_max):
#             choose -= (num_ma * num_max)
#         print choose

# alist=[1,2,3,["a","b"]]
# d=copy.deepcopy(alist)
# e=copy.deepcopy(alist)
# alist.append(5)
# d.append(8)
# print alist;print d;print e

# a = {}
# a[5] = -1.1
# a[2] = -1.1
# a[3] = -2
# a[4] = -5
#
# print (max(a, key=a.get))
# print a