-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutils.py
194 lines (175 loc) · 32.4 KB
/
utils.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
import cryptogy
import numpy as np
from typing import List
def format_key(key, return_np=True):
try:
if key.find(";") != -1:
matrix = list()
rows = key.split(";")[:-1]
for row in rows:
values = list()
for number in row.split(","):
values.append(int(number))
matrix.append(values)
if return_np:
return np.array(matrix)
else:
return matrix
except:
pass
if isinstance(key, list) or isinstance(key, int):
return key
try:
return int(key)
except:
list_ = list()
for val in key.split(","):
list_.append(int(val))
return list_
def format_str_to_list(array: str):
list_ = array.split(",")
for i in range(len(list_)):
list_[i] = int(list_[i])
return list_
def format_darray(matrix: np.array):
n = matrix.shape[0]
m = matrix.shape[1]
string = ""
for i in range(n):
for j in range(m):
string += str(matrix[i][j])
if j < m - 1:
string += ","
string += ";"
return string
def format_list(list: List[int]):
string = ""
for bit in list:
string += str(bit) + ","
return string[:-1]
def get_analyzer(data: dict):
cipher = data["cipher"]
if cipher == "shift":
return cryptogy.ShiftCryptAnalizer()
elif cipher == "substitution":
return cryptogy.SubstitutionCryptAnalizer()
elif cipher == "affine":
return cryptogy.AffineCryptAnalizer()
elif cipher == "vigenere":
return cryptogy.VigenereCryptAnalizer()
elif cipher == "hill":
return cryptogy.HillCryptAnalizer()
elif cipher == "permutation":
return cryptogy.HillCryptAnalizer()
elif cipher == "stream":
return cryptogy.AutokeyCryptAnalizer()
def get_cipher(data: dict):
cipher = data["cipher"]
if cipher == "shift":
return cryptogy.ShiftCipher()
elif cipher == "substitution":
return cryptogy.SubstitutionCipher()
elif cipher == "affine":
return cryptogy.AffineCipher()
elif cipher == "vigenere":
return cryptogy.VigenereCipher(m=int(data["keyLength"]))
elif cipher == "hill":
return cryptogy.HillCipher(m=int(data["numPartitions"]))
elif cipher == "permutation":
return cryptogy.HillCipher(
m=int(data["numPartitions"]), permutation_cipher=True
)
elif cipher == "stream":
return cryptogy.AutokeyCipher()
elif cipher == "sdes":
return cryptogy.SDESCipher()
elif cipher == "des":
return cryptogy.DESCipher()
elif cipher == "3des":
return cryptogy.TripleDESCipher()
elif cipher == "aes":
keyLength = int(data["keyLength"])
key = b"P" * 16
if keyLength == 16:
key = b"P" * 16
elif keyLength == 24:
key = b"P" * 24
elif keyLength == 32:
key = b"P" * 32
cipher = cryptogy.AESCipher()
cipher.setKey(key)
return cipher
elif cipher == "gamma-pentagonal":
return cryptogy.GammaPentagonalCipher()
elif cipher == "rsa" or cipher == "rabin":
return cryptogy.RSACipher()
elif cipher == "elgamal":
return cryptogy.MVCipher()
import numpy as np
images_key = images_key = np.array(
[[11, 1, 14, 16, 1, 14, 14, 1, 21, 13, 14, 5, 10, 24, 21, 14, 15, 10, 4, 1, 12, 6, 13, 0, 11, 16, 5, 23, 10, 15, 16, 4],
[4, 2, 16, 23, 24, 24, 0, 14, 17, 2, 15, 16, 18, 11, 8, 22, 22, 14, 13, 4, 17, 14, 14, 14, 1, 14, 17, 14, 4, 15, 8, 2],
[23, 9, 10, 3, 11, 12, 16, 12, 18, 16, 21, 20, 17, 1, 1, 7, 10, 2, 8, 18, 13, 7, 2, 3, 19, 19, 15, 20, 2, 2, 14, 11],
[21, 8, 10, 16, 9, 18, 1, 13, 10, 12, 7, 17, 10, 22, 16, 5, 3, 2, 2, 1, 8, 14, 20, 4, 14, 0, 16, 6, 4, 1, 1, 8],
[24, 19, 9, 24, 4, 9, 8, 7, 13, 7, 8, 13, 0, 10, 13, 21, 12, 2, 6, 1, 22, 14, 14, 19, 8, 14, 8, 15, 15, 6, 8, 21],
[24, 22, 1, 7, 9, 13, 19, 15, 6, 16, 24, 20, 14, 17, 12, 13, 6, 8, 6, 20, 2, 18, 5, 10, 12, 11, 11, 21, 12, 18, 14, 6],
[21, 23, 16, 9, 22, 24, 22, 16, 4, 15, 1, 22, 22, 22, 13, 19, 23, 17, 8, 22, 1, 17, 18, 19, 10, 5, 6, 19, 23, 1, 17, 2],
[20, 3, 13, 24, 0, 5, 7, 18, 2, 18, 15, 13, 21, 24, 19, 13, 8, 10, 15, 3, 10, 11, 2, 20, 23, 11, 15, 3, 9, 1, 21, 16],
[0, 16, 12, 24, 6, 11, 16, 1, 20, 16, 2, 4, 7, 1, 11, 19, 22, 11, 2, 2, 11, 6, 16, 24, 19, 23, 8, 13, 13, 13, 6, 9],
[0, 16, 9, 22, 15, 3, 3, 16, 24, 11, 13, 20, 15, 9, 15, 18, 9, 10, 24, 21, 6, 10, 0, 7, 21, 8, 21, 15, 14, 11, 13, 5],
[21, 24, 14, 1, 16, 19, 18, 12, 20, 11, 12, 2, 1, 13, 6, 3, 22, 22, 6, 2, 15, 6, 17, 4, 22, 0, 22, 9, 19, 7, 6, 9],
[24, 6, 6, 12, 19, 14, 16, 16, 17, 21, 20, 19, 24, 13, 12, 9, 9, 20, 4, 20, 22, 1, 6, 9, 18, 12, 12, 5, 20, 15, 4, 20],
[17, 14, 24, 12, 2, 1, 1, 4, 22, 10, 7, 2, 15, 18, 6, 24, 7, 10, 20, 9, 3, 5, 23, 16, 23, 18, 14, 5, 22, 4, 13, 5],
[16, 3, 10, 13, 10, 11, 18, 17, 12, 2, 15, 6, 14, 16, 22, 17, 11, 22, 2, 4, 4, 8, 17, 7, 20, 19, 11, 15, 1, 21, 0, 13],
[1, 16, 6, 4, 14, 3, 16, 0, 8, 8, 8, 22, 14, 18, 2, 10, 11, 4, 21, 7, 8, 20, 17, 4, 8, 11, 12, 17, 8, 13, 0, 3],
[0, 16, 12, 23, 13, 21, 15, 19, 6, 9, 21, 19, 3, 14, 12, 9, 20, 11, 10, 8, 4, 22, 7, 10, 23, 10, 10, 19, 22, 2, 5, 24],
[0, 14, 4, 11, 4, 16, 12, 14, 20, 17, 7, 3, 8, 6, 14, 1, 17, 0, 10, 24, 20, 3, 15, 16, 13, 6, 11, 5, 19, 8, 18, 11],
[5, 10, 22, 24, 15, 13, 1, 7, 23, 22, 16, 1, 18, 17, 5, 16, 16, 1, 14, 22, 13, 11, 11, 9, 11, 20, 14, 5, 22, 11, 13, 7],
[22, 11, 18, 23, 12, 5, 24, 14, 14, 16, 6, 22, 1, 17, 24, 2, 2, 10, 20, 5, 1, 18, 14, 13, 6, 5, 22, 1, 5, 22, 5, 7],
[11, 8, 1, 19, 4, 11, 14, 4, 2, 17, 11, 22, 4, 21, 16, 4, 8, 16, 20, 18, 20, 10, 24, 14, 1, 15, 19, 3, 17, 10, 19, 13],
[20, 3, 22, 9, 19, 1, 1, 8, 16, 23, 5, 7, 13, 4, 23, 13, 19, 15, 4, 22, 13, 8, 1, 22, 11, 14, 18, 21, 13, 13, 10, 5],
[4, 1, 5, 20, 18, 4, 15, 20, 4, 7, 3, 7, 10, 15, 21, 4, 18, 16, 17, 13, 12, 21, 5, 2, 6, 13, 19, 21, 0, 24, 11, 16],
[24, 10, 19, 6, 0, 19, 10, 10, 20, 3, 9, 16, 19, 22, 2, 14, 9, 11, 16, 22, 3, 1, 5, 0, 5, 17, 17, 21, 2, 14, 12, 2],
[13, 2, 22, 5, 17, 12, 4, 22, 7, 23, 5, 24, 9, 5, 6, 19, 22, 3, 17, 6, 24, 17, 14, 9, 4, 19, 4, 4, 17, 12, 18, 7],
[6, 15, 23, 22, 12, 16, 9, 4, 1, 24, 14, 24, 1, 21, 10, 4, 20, 12, 14, 3, 5, 3, 5, 23, 8, 16, 2, 14, 2, 22, 11, 22],
[5, 14, 1, 1, 5, 0, 12, 20, 18, 2, 9, 11, 15, 12, 21, 3, 23, 4, 14, 1, 8, 4, 13, 6, 16, 13, 10, 20, 7, 6, 18, 24],
[22, 4, 4, 23, 6, 3, 7, 1, 0, 0, 14, 24, 14, 22, 5, 0, 10, 8, 5, 19, 2, 3, 10, 18, 13, 5, 14, 8, 0, 4, 23, 10],
[18, 18, 10, 9, 22, 0, 21, 24, 23, 3, 0, 1, 13, 16, 17, 16, 19, 13, 1, 6, 1, 24, 9, 2, 5, 22, 4, 21, 16, 10, 17, 9],
[12, 14, 20, 9, 21, 8, 0, 22, 14, 17, 10, 13, 19, 24, 11, 6, 23, 18, 4, 21, 12, 20, 1, 4, 13, 0, 2, 8, 7, 24, 3, 1],
[7, 8, 11, 15, 22, 24, 5, 0, 5, 24, 9, 16, 18, 17, 0, 2, 5, 4, 13, 16, 5, 18, 8, 2, 1, 17, 20, 6, 2, 6, 2, 13],
[12, 0, 19, 11, 4, 23, 8, 24, 4, 20, 18, 2, 14, 19, 3, 4, 8, 24, 0, 16, 7, 2, 20, 4, 24, 21, 20, 16, 22, 14, 10, 12],
[20, 14, 2, 23, 3, 11, 21, 2, 4, 1, 20, 14, 13, 4, 10, 13, 13, 18, 23, 24, 12, 20, 7, 8, 20, 17, 22, 8, 13, 9, 5, 19]])
images_inv_key = np.array([
[2.000000000000000000e+01,1.700000000000000000e+01,1.200000000000000000e+01,1.300000000000000000e+01,4.000000000000000000e+00,8.000000000000000000e+00,1.600000000000000000e+01,4.000000000000000000e+00,7.000000000000000000e+00,4.000000000000000000e+00,1.200000000000000000e+01,2.100000000000000000e+01,1.200000000000000000e+01,2.500000000000000000e+01,2.300000000000000000e+01,5.000000000000000000e+00,1.200000000000000000e+01,2.200000000000000000e+01,9.000000000000000000e+00,2.200000000000000000e+01,1.900000000000000000e+01,1.700000000000000000e+01,1.000000000000000000e+00,1.900000000000000000e+01,6.000000000000000000e+00,1.600000000000000000e+01,6.000000000000000000e+00,1.500000000000000000e+01,6.000000000000000000e+00,1.800000000000000000e+01,1.800000000000000000e+01,9.000000000000000000e+00],
[7.000000000000000000e+00,1.600000000000000000e+01,1.700000000000000000e+01,8.000000000000000000e+00,1.000000000000000000e+01,2.400000000000000000e+01,2.000000000000000000e+00,1.000000000000000000e+01,2.400000000000000000e+01,1.000000000000000000e+00,9.000000000000000000e+00,4.000000000000000000e+00,2.000000000000000000e+00,2.400000000000000000e+01,7.000000000000000000e+00,2.200000000000000000e+01,1.000000000000000000e+00,1.100000000000000000e+01,1.900000000000000000e+01,2.500000000000000000e+01,1.700000000000000000e+01,2.100000000000000000e+01,4.000000000000000000e+00,2.000000000000000000e+01,1.600000000000000000e+01,0.000000000000000000e+00,1.400000000000000000e+01,1.400000000000000000e+01,7.000000000000000000e+00,8.000000000000000000e+00,1.700000000000000000e+01,1.800000000000000000e+01],
[4.000000000000000000e+00,2.500000000000000000e+01,1.000000000000000000e+01,1.700000000000000000e+01,1.300000000000000000e+01,1.700000000000000000e+01,1.800000000000000000e+01,6.000000000000000000e+00,2.400000000000000000e+01,1.900000000000000000e+01,1.700000000000000000e+01,9.000000000000000000e+00,2.000000000000000000e+00,5.000000000000000000e+00,3.000000000000000000e+00,1.700000000000000000e+01,1.400000000000000000e+01,1.600000000000000000e+01,9.000000000000000000e+00,5.000000000000000000e+00,7.000000000000000000e+00,1.000000000000000000e+00,8.000000000000000000e+00,1.000000000000000000e+01,2.500000000000000000e+01,1.200000000000000000e+01,2.100000000000000000e+01,6.000000000000000000e+00,1.000000000000000000e+01,1.600000000000000000e+01,7.000000000000000000e+00,6.000000000000000000e+00],
[1.800000000000000000e+01,5.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,2.500000000000000000e+01,1.100000000000000000e+01,6.000000000000000000e+00,1.200000000000000000e+01,2.000000000000000000e+01,1.800000000000000000e+01,4.000000000000000000e+00,0.000000000000000000e+00,2.100000000000000000e+01,6.000000000000000000e+00,5.000000000000000000e+00,1.000000000000000000e+00,1.400000000000000000e+01,2.100000000000000000e+01,5.000000000000000000e+00,7.000000000000000000e+00,1.900000000000000000e+01,1.700000000000000000e+01,1.400000000000000000e+01,1.000000000000000000e+00,2.000000000000000000e+01,5.000000000000000000e+00,1.800000000000000000e+01,1.800000000000000000e+01,6.000000000000000000e+00,1.600000000000000000e+01,2.100000000000000000e+01,2.000000000000000000e+00],
[2.300000000000000000e+01,1.700000000000000000e+01,1.500000000000000000e+01,7.000000000000000000e+00,9.000000000000000000e+00,1.900000000000000000e+01,1.900000000000000000e+01,1.400000000000000000e+01,1.000000000000000000e+00,2.500000000000000000e+01,1.200000000000000000e+01,1.000000000000000000e+01,1.000000000000000000e+00,4.000000000000000000e+00,2.000000000000000000e+01,6.000000000000000000e+00,1.000000000000000000e+01,2.000000000000000000e+01,9.000000000000000000e+00,1.400000000000000000e+01,2.400000000000000000e+01,1.400000000000000000e+01,1.900000000000000000e+01,8.000000000000000000e+00,5.000000000000000000e+00,6.000000000000000000e+00,1.100000000000000000e+01,5.000000000000000000e+00,2.400000000000000000e+01,2.500000000000000000e+01,8.000000000000000000e+00,1.800000000000000000e+01],
[3.000000000000000000e+00,8.000000000000000000e+00,2.000000000000000000e+00,4.000000000000000000e+00,2.000000000000000000e+00,1.200000000000000000e+01,1.700000000000000000e+01,1.600000000000000000e+01,1.200000000000000000e+01,2.200000000000000000e+01,9.000000000000000000e+00,8.000000000000000000e+00,1.100000000000000000e+01,1.300000000000000000e+01,1.100000000000000000e+01,2.000000000000000000e+00,1.800000000000000000e+01,2.000000000000000000e+00,1.200000000000000000e+01,2.400000000000000000e+01,1.000000000000000000e+01,1.900000000000000000e+01,3.000000000000000000e+00,1.200000000000000000e+01,2.200000000000000000e+01,1.000000000000000000e+01,1.200000000000000000e+01,0.000000000000000000e+00,8.000000000000000000e+00,1.500000000000000000e+01,1.300000000000000000e+01,3.000000000000000000e+00],
[2.100000000000000000e+01,2.200000000000000000e+01,2.000000000000000000e+01,1.500000000000000000e+01,1.800000000000000000e+01,1.700000000000000000e+01,1.700000000000000000e+01,1.200000000000000000e+01,1.400000000000000000e+01,2.400000000000000000e+01,8.000000000000000000e+00,1.000000000000000000e+00,1.000000000000000000e+00,2.000000000000000000e+01,6.000000000000000000e+00,9.000000000000000000e+00,7.000000000000000000e+00,1.100000000000000000e+01,9.000000000000000000e+00,1.000000000000000000e+00,2.000000000000000000e+01,1.400000000000000000e+01,4.000000000000000000e+00,3.000000000000000000e+00,1.700000000000000000e+01,0.000000000000000000e+00,1.900000000000000000e+01,2.000000000000000000e+00,4.000000000000000000e+00,1.700000000000000000e+01,1.200000000000000000e+01,5.000000000000000000e+00],
[9.000000000000000000e+00,1.000000000000000000e+01,2.500000000000000000e+01,3.000000000000000000e+00,2.300000000000000000e+01,1.000000000000000000e+01,1.500000000000000000e+01,4.000000000000000000e+00,1.000000000000000000e+00,1.500000000000000000e+01,1.600000000000000000e+01,1.000000000000000000e+00,5.000000000000000000e+00,1.300000000000000000e+01,9.000000000000000000e+00,8.000000000000000000e+00,1.100000000000000000e+01,1.000000000000000000e+01,7.000000000000000000e+00,7.000000000000000000e+00,1.300000000000000000e+01,9.000000000000000000e+00,1.500000000000000000e+01,3.000000000000000000e+00,4.000000000000000000e+00,2.500000000000000000e+01,8.000000000000000000e+00,1.900000000000000000e+01,2.300000000000000000e+01,1.000000000000000000e+00,5.000000000000000000e+00,1.900000000000000000e+01],
[3.000000000000000000e+00,1.600000000000000000e+01,2.500000000000000000e+01,1.500000000000000000e+01,1.000000000000000000e+00,2.000000000000000000e+00,1.600000000000000000e+01,0.000000000000000000e+00,1.000000000000000000e+00,6.000000000000000000e+00,2.400000000000000000e+01,1.000000000000000000e+01,8.000000000000000000e+00,8.000000000000000000e+00,1.100000000000000000e+01,7.000000000000000000e+00,1.400000000000000000e+01,1.900000000000000000e+01,9.000000000000000000e+00,1.000000000000000000e+01,4.000000000000000000e+00,9.000000000000000000e+00,5.000000000000000000e+00,1.900000000000000000e+01,1.300000000000000000e+01,1.300000000000000000e+01,2.200000000000000000e+01,1.300000000000000000e+01,1.000000000000000000e+01,1.100000000000000000e+01,1.800000000000000000e+01,1.700000000000000000e+01],
[1.700000000000000000e+01,1.600000000000000000e+01,6.000000000000000000e+00,1.000000000000000000e+01,2.200000000000000000e+01,6.000000000000000000e+00,1.900000000000000000e+01,2.200000000000000000e+01,1.900000000000000000e+01,2.400000000000000000e+01,7.000000000000000000e+00,1.000000000000000000e+00,1.200000000000000000e+01,5.000000000000000000e+00,4.000000000000000000e+00,1.200000000000000000e+01,1.000000000000000000e+01,2.100000000000000000e+01,7.000000000000000000e+00,1.200000000000000000e+01,2.000000000000000000e+00,9.000000000000000000e+00,7.000000000000000000e+00,1.200000000000000000e+01,2.300000000000000000e+01,6.000000000000000000e+00,4.000000000000000000e+00,2.400000000000000000e+01,1.000000000000000000e+01,2.000000000000000000e+01,3.000000000000000000e+00,9.000000000000000000e+00],
[2.500000000000000000e+01,6.000000000000000000e+00,2.100000000000000000e+01,2.200000000000000000e+01,1.000000000000000000e+01,1.300000000000000000e+01,1.500000000000000000e+01,0.000000000000000000e+00,1.100000000000000000e+01,1.100000000000000000e+01,5.000000000000000000e+00,2.200000000000000000e+01,4.000000000000000000e+00,0.000000000000000000e+00,2.300000000000000000e+01,2.500000000000000000e+01,2.100000000000000000e+01,1.100000000000000000e+01,2.000000000000000000e+01,2.000000000000000000e+01,9.000000000000000000e+00,1.300000000000000000e+01,1.600000000000000000e+01,2.100000000000000000e+01,3.000000000000000000e+00,3.000000000000000000e+00,1.300000000000000000e+01,2.000000000000000000e+00,9.000000000000000000e+00,2.000000000000000000e+00,7.000000000000000000e+00,1.000000000000000000e+01],
[1.000000000000000000e+00,3.000000000000000000e+00,1.600000000000000000e+01,0.000000000000000000e+00,2.000000000000000000e+00,1.000000000000000000e+01,9.000000000000000000e+00,2.100000000000000000e+01,1.200000000000000000e+01,9.000000000000000000e+00,1.800000000000000000e+01,1.400000000000000000e+01,1.200000000000000000e+01,3.000000000000000000e+00,2.000000000000000000e+01,5.000000000000000000e+00,1.100000000000000000e+01,1.400000000000000000e+01,9.000000000000000000e+00,4.000000000000000000e+00,1.900000000000000000e+01,8.000000000000000000e+00,8.000000000000000000e+00,6.000000000000000000e+00,2.000000000000000000e+00,2.500000000000000000e+01,1.000000000000000000e+00,3.000000000000000000e+00,1.400000000000000000e+01,2.100000000000000000e+01,2.200000000000000000e+01,5.000000000000000000e+00],
[1.700000000000000000e+01,2.400000000000000000e+01,1.500000000000000000e+01,2.000000000000000000e+00,8.000000000000000000e+00,1.000000000000000000e+00,5.000000000000000000e+00,1.900000000000000000e+01,1.900000000000000000e+01,2.000000000000000000e+01,1.900000000000000000e+01,7.000000000000000000e+00,1.000000000000000000e+00,2.000000000000000000e+01,3.000000000000000000e+00,1.300000000000000000e+01,9.000000000000000000e+00,1.900000000000000000e+01,2.400000000000000000e+01,9.000000000000000000e+00,3.000000000000000000e+00,9.000000000000000000e+00,1.700000000000000000e+01,0.000000000000000000e+00,4.000000000000000000e+00,2.500000000000000000e+01,1.100000000000000000e+01,1.800000000000000000e+01,7.000000000000000000e+00,1.100000000000000000e+01,1.000000000000000000e+00,1.700000000000000000e+01],
[3.000000000000000000e+00,2.000000000000000000e+00,2.300000000000000000e+01,2.000000000000000000e+00,1.600000000000000000e+01,1.100000000000000000e+01,1.000000000000000000e+00,6.000000000000000000e+00,1.400000000000000000e+01,6.000000000000000000e+00,2.200000000000000000e+01,2.500000000000000000e+01,6.000000000000000000e+00,2.300000000000000000e+01,1.000000000000000000e+00,5.000000000000000000e+00,1.200000000000000000e+01,9.000000000000000000e+00,5.000000000000000000e+00,1.100000000000000000e+01,2.000000000000000000e+01,1.000000000000000000e+01,5.000000000000000000e+00,1.500000000000000000e+01,7.000000000000000000e+00,3.000000000000000000e+00,2.500000000000000000e+01,1.300000000000000000e+01,0.000000000000000000e+00,2.000000000000000000e+01,3.000000000000000000e+00,2.000000000000000000e+01],
[2.500000000000000000e+01,2.000000000000000000e+00,2.200000000000000000e+01,1.100000000000000000e+01,2.100000000000000000e+01,2.300000000000000000e+01,1.400000000000000000e+01,1.900000000000000000e+01,8.000000000000000000e+00,9.000000000000000000e+00,9.000000000000000000e+00,1.700000000000000000e+01,3.000000000000000000e+00,1.000000000000000000e+00,1.600000000000000000e+01,3.000000000000000000e+00,2.000000000000000000e+01,2.500000000000000000e+01,0.000000000000000000e+00,1.000000000000000000e+00,1.700000000000000000e+01,1.700000000000000000e+01,1.500000000000000000e+01,1.100000000000000000e+01,4.000000000000000000e+00,2.300000000000000000e+01,1.700000000000000000e+01,7.000000000000000000e+00,2.300000000000000000e+01,1.800000000000000000e+01,2.400000000000000000e+01,2.300000000000000000e+01],
[1.600000000000000000e+01,1.500000000000000000e+01,2.200000000000000000e+01,1.500000000000000000e+01,1.600000000000000000e+01,1.400000000000000000e+01,1.100000000000000000e+01,1.500000000000000000e+01,1.500000000000000000e+01,9.000000000000000000e+00,1.000000000000000000e+01,7.000000000000000000e+00,1.600000000000000000e+01,4.000000000000000000e+00,9.000000000000000000e+00,2.500000000000000000e+01,1.000000000000000000e+00,4.000000000000000000e+00,2.400000000000000000e+01,2.400000000000000000e+01,2.000000000000000000e+00,8.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e+00,1.000000000000000000e+01,7.000000000000000000e+00,1.100000000000000000e+01,1.600000000000000000e+01,1.800000000000000000e+01,1.000000000000000000e+00,1.200000000000000000e+01,1.400000000000000000e+01],
[1.900000000000000000e+01,1.800000000000000000e+01,2.300000000000000000e+01,1.600000000000000000e+01,1.000000000000000000e+01,2.000000000000000000e+00,0.000000000000000000e+00,9.000000000000000000e+00,2.000000000000000000e+00,1.300000000000000000e+01,1.500000000000000000e+01,9.000000000000000000e+00,8.000000000000000000e+00,2.400000000000000000e+01,1.200000000000000000e+01,1.100000000000000000e+01,2.100000000000000000e+01,1.400000000000000000e+01,2.500000000000000000e+01,7.000000000000000000e+00,1.600000000000000000e+01,4.000000000000000000e+00,8.000000000000000000e+00,1.200000000000000000e+01,1.400000000000000000e+01,7.000000000000000000e+00,2.400000000000000000e+01,3.000000000000000000e+00,5.000000000000000000e+00,1.900000000000000000e+01,2.500000000000000000e+01,1.300000000000000000e+01],
[2.000000000000000000e+01,1.900000000000000000e+01,2.100000000000000000e+01,2.200000000000000000e+01,1.400000000000000000e+01,1.000000000000000000e+00,1.700000000000000000e+01,1.200000000000000000e+01,1.400000000000000000e+01,2.100000000000000000e+01,1.200000000000000000e+01,2.100000000000000000e+01,1.800000000000000000e+01,1.600000000000000000e+01,4.000000000000000000e+00,2.100000000000000000e+01,1.100000000000000000e+01,1.300000000000000000e+01,1.800000000000000000e+01,2.000000000000000000e+00,2.200000000000000000e+01,6.000000000000000000e+00,1.300000000000000000e+01,2.100000000000000000e+01,1.400000000000000000e+01,2.000000000000000000e+00,2.500000000000000000e+01,1.400000000000000000e+01,6.000000000000000000e+00,1.400000000000000000e+01,9.000000000000000000e+00,1.500000000000000000e+01],
[1.400000000000000000e+01,2.100000000000000000e+01,2.000000000000000000e+00,2.100000000000000000e+01,3.000000000000000000e+00,1.200000000000000000e+01,1.200000000000000000e+01,1.100000000000000000e+01,7.000000000000000000e+00,1.100000000000000000e+01,2.000000000000000000e+01,2.500000000000000000e+01,2.100000000000000000e+01,1.000000000000000000e+01,2.000000000000000000e+00,2.400000000000000000e+01,8.000000000000000000e+00,2.100000000000000000e+01,1.400000000000000000e+01,1.500000000000000000e+01,2.200000000000000000e+01,1.000000000000000000e+01,1.200000000000000000e+01,8.000000000000000000e+00,1.400000000000000000e+01,1.800000000000000000e+01,1.800000000000000000e+01,2.200000000000000000e+01,1.900000000000000000e+01,8.000000000000000000e+00,0.000000000000000000e+00,1.700000000000000000e+01],
[1.100000000000000000e+01,8.000000000000000000e+00,2.000000000000000000e+00,1.500000000000000000e+01,1.700000000000000000e+01,1.000000000000000000e+01,1.800000000000000000e+01,3.000000000000000000e+00,1.700000000000000000e+01,2.000000000000000000e+01,1.800000000000000000e+01,9.000000000000000000e+00,9.000000000000000000e+00,8.000000000000000000e+00,0.000000000000000000e+00,1.100000000000000000e+01,7.000000000000000000e+00,5.000000000000000000e+00,6.000000000000000000e+00,1.500000000000000000e+01,9.000000000000000000e+00,0.000000000000000000e+00,1.400000000000000000e+01,2.500000000000000000e+01,4.000000000000000000e+00,2.400000000000000000e+01,1.800000000000000000e+01,1.300000000000000000e+01,2.400000000000000000e+01,0.000000000000000000e+00,2.500000000000000000e+01,2.300000000000000000e+01],
[2.300000000000000000e+01,7.000000000000000000e+00,0.000000000000000000e+00,5.000000000000000000e+00,6.000000000000000000e+00,2.200000000000000000e+01,1.000000000000000000e+01,8.000000000000000000e+00,1.500000000000000000e+01,2.000000000000000000e+01,1.900000000000000000e+01,2.000000000000000000e+01,1.600000000000000000e+01,1.600000000000000000e+01,1.500000000000000000e+01,0.000000000000000000e+00,1.300000000000000000e+01,1.100000000000000000e+01,1.700000000000000000e+01,2.500000000000000000e+01,1.800000000000000000e+01,6.000000000000000000e+00,1.400000000000000000e+01,0.000000000000000000e+00,2.200000000000000000e+01,2.300000000000000000e+01,8.000000000000000000e+00,1.000000000000000000e+01,2.300000000000000000e+01,1.500000000000000000e+01,1.700000000000000000e+01,9.000000000000000000e+00],
[3.000000000000000000e+00,2.500000000000000000e+01,7.000000000000000000e+00,1.300000000000000000e+01,5.000000000000000000e+00,8.000000000000000000e+00,1.300000000000000000e+01,1.000000000000000000e+01,2.200000000000000000e+01,1.000000000000000000e+00,1.600000000000000000e+01,2.200000000000000000e+01,1.000000000000000000e+01,5.000000000000000000e+00,5.000000000000000000e+00,2.400000000000000000e+01,6.000000000000000000e+00,2.000000000000000000e+01,1.500000000000000000e+01,6.000000000000000000e+00,1.400000000000000000e+01,1.700000000000000000e+01,6.000000000000000000e+00,1.000000000000000000e+00,7.000000000000000000e+00,2.500000000000000000e+01,0.000000000000000000e+00,1.800000000000000000e+01,2.500000000000000000e+01,1.500000000000000000e+01,2.400000000000000000e+01,9.000000000000000000e+00],
[9.000000000000000000e+00,6.000000000000000000e+00,1.000000000000000000e+00,1.400000000000000000e+01,1.000000000000000000e+01,1.300000000000000000e+01,1.000000000000000000e+00,1.100000000000000000e+01,2.200000000000000000e+01,0.000000000000000000e+00,2.000000000000000000e+00,1.200000000000000000e+01,1.300000000000000000e+01,1.600000000000000000e+01,2.400000000000000000e+01,2.000000000000000000e+00,9.000000000000000000e+00,2.000000000000000000e+01,1.900000000000000000e+01,1.300000000000000000e+01,1.900000000000000000e+01,2.300000000000000000e+01,1.700000000000000000e+01,1.000000000000000000e+01,1.300000000000000000e+01,1.400000000000000000e+01,8.000000000000000000e+00,3.000000000000000000e+00,1.800000000000000000e+01,1.500000000000000000e+01,7.000000000000000000e+00,1.200000000000000000e+01],
[2.500000000000000000e+01,2.300000000000000000e+01,1.500000000000000000e+01,5.000000000000000000e+00,1.900000000000000000e+01,1.800000000000000000e+01,1.500000000000000000e+01,1.600000000000000000e+01,9.000000000000000000e+00,6.000000000000000000e+00,1.500000000000000000e+01,2.500000000000000000e+01,2.300000000000000000e+01,1.500000000000000000e+01,8.000000000000000000e+00,1.800000000000000000e+01,6.000000000000000000e+00,1.600000000000000000e+01,1.100000000000000000e+01,2.000000000000000000e+00,1.400000000000000000e+01,2.100000000000000000e+01,5.000000000000000000e+00,8.000000000000000000e+00,9.000000000000000000e+00,1.000000000000000000e+01,5.000000000000000000e+00,5.000000000000000000e+00,0.000000000000000000e+00,1.600000000000000000e+01,1.600000000000000000e+01,0.000000000000000000e+00],
[0.000000000000000000e+00,2.400000000000000000e+01,6.000000000000000000e+00,2.400000000000000000e+01,2.000000000000000000e+00,1.200000000000000000e+01,2.000000000000000000e+00,1.900000000000000000e+01,1.500000000000000000e+01,1.000000000000000000e+00,5.000000000000000000e+00,2.000000000000000000e+00,1.500000000000000000e+01,1.200000000000000000e+01,2.400000000000000000e+01,2.000000000000000000e+00,2.000000000000000000e+01,1.200000000000000000e+01,7.000000000000000000e+00,5.000000000000000000e+00,2.400000000000000000e+01,6.000000000000000000e+00,1.100000000000000000e+01,1.000000000000000000e+01,2.000000000000000000e+01,9.000000000000000000e+00,2.500000000000000000e+01,1.200000000000000000e+01,2.400000000000000000e+01,1.800000000000000000e+01,1.500000000000000000e+01,2.200000000000000000e+01],
[1.200000000000000000e+01,5.000000000000000000e+00,1.300000000000000000e+01,2.100000000000000000e+01,2.300000000000000000e+01,1.600000000000000000e+01,2.400000000000000000e+01,9.000000000000000000e+00,2.500000000000000000e+01,2.000000000000000000e+01,1.400000000000000000e+01,1.000000000000000000e+00,1.900000000000000000e+01,1.400000000000000000e+01,1.300000000000000000e+01,2.000000000000000000e+01,1.900000000000000000e+01,4.000000000000000000e+00,4.000000000000000000e+00,1.500000000000000000e+01,7.000000000000000000e+00,1.600000000000000000e+01,2.500000000000000000e+01,1.700000000000000000e+01,8.000000000000000000e+00,2.400000000000000000e+01,5.000000000000000000e+00,2.000000000000000000e+00,2.000000000000000000e+00,1.600000000000000000e+01,2.200000000000000000e+01,2.500000000000000000e+01],
[2.300000000000000000e+01,1.400000000000000000e+01,2.000000000000000000e+00,1.900000000000000000e+01,1.300000000000000000e+01,1.000000000000000000e+00,1.000000000000000000e+01,1.900000000000000000e+01,1.400000000000000000e+01,4.000000000000000000e+00,0.000000000000000000e+00,4.000000000000000000e+00,1.600000000000000000e+01,2.000000000000000000e+01,1.000000000000000000e+01,3.000000000000000000e+00,1.100000000000000000e+01,1.800000000000000000e+01,0.000000000000000000e+00,1.700000000000000000e+01,2.200000000000000000e+01,1.100000000000000000e+01,1.900000000000000000e+01,1.000000000000000000e+00,4.000000000000000000e+00,6.000000000000000000e+00,3.000000000000000000e+00,1.100000000000000000e+01,1.600000000000000000e+01,0.000000000000000000e+00,4.000000000000000000e+00,1.000000000000000000e+00],
[9.000000000000000000e+00,1.700000000000000000e+01,3.000000000000000000e+00,1.100000000000000000e+01,0.000000000000000000e+00,1.800000000000000000e+01,2.100000000000000000e+01,1.200000000000000000e+01,1.800000000000000000e+01,1.400000000000000000e+01,2.000000000000000000e+01,2.400000000000000000e+01,3.000000000000000000e+00,0.000000000000000000e+00,1.700000000000000000e+01,1.600000000000000000e+01,1.400000000000000000e+01,1.300000000000000000e+01,1.100000000000000000e+01,2.200000000000000000e+01,1.500000000000000000e+01,1.800000000000000000e+01,2.300000000000000000e+01,9.000000000000000000e+00,2.300000000000000000e+01,2.200000000000000000e+01,3.000000000000000000e+00,2.300000000000000000e+01,7.000000000000000000e+00,1.800000000000000000e+01,1.600000000000000000e+01,2.300000000000000000e+01],
[2.000000000000000000e+00,1.500000000000000000e+01,8.000000000000000000e+00,5.000000000000000000e+00,2.400000000000000000e+01,1.000000000000000000e+00,2.000000000000000000e+00,2.400000000000000000e+01,5.000000000000000000e+00,1.500000000000000000e+01,5.000000000000000000e+00,1.000000000000000000e+01,1.100000000000000000e+01,2.400000000000000000e+01,1.000000000000000000e+00,4.000000000000000000e+00,6.000000000000000000e+00,5.000000000000000000e+00,9.000000000000000000e+00,0.000000000000000000e+00,2.000000000000000000e+01,1.300000000000000000e+01,4.000000000000000000e+00,1.000000000000000000e+00,4.000000000000000000e+00,1.400000000000000000e+01,1.400000000000000000e+01,1.000000000000000000e+00,1.200000000000000000e+01,2.400000000000000000e+01,2.100000000000000000e+01,3.000000000000000000e+00],
[9.000000000000000000e+00,2.000000000000000000e+00,7.000000000000000000e+00,1.800000000000000000e+01,0.000000000000000000e+00,6.000000000000000000e+00,1.200000000000000000e+01,1.300000000000000000e+01,1.100000000000000000e+01,1.900000000000000000e+01,1.700000000000000000e+01,6.000000000000000000e+00,1.300000000000000000e+01,1.100000000000000000e+01,1.700000000000000000e+01,1.700000000000000000e+01,2.100000000000000000e+01,6.000000000000000000e+00,5.000000000000000000e+00,2.000000000000000000e+01,2.000000000000000000e+00,1.200000000000000000e+01,4.000000000000000000e+00,1.100000000000000000e+01,1.500000000000000000e+01,1.400000000000000000e+01,2.000000000000000000e+01,1.300000000000000000e+01,1.100000000000000000e+01,6.000000000000000000e+00,7.000000000000000000e+00,1.600000000000000000e+01],
[1.400000000000000000e+01,8.000000000000000000e+00,1.900000000000000000e+01,1.000000000000000000e+00,2.500000000000000000e+01,1.700000000000000000e+01,2.400000000000000000e+01,1.500000000000000000e+01,9.000000000000000000e+00,1.300000000000000000e+01,3.000000000000000000e+00,1.000000000000000000e+01,1.700000000000000000e+01,1.800000000000000000e+01,1.900000000000000000e+01,0.000000000000000000e+00,4.000000000000000000e+00,1.700000000000000000e+01,1.100000000000000000e+01,8.000000000000000000e+00,1.500000000000000000e+01,2.500000000000000000e+01,1.900000000000000000e+01,1.100000000000000000e+01,2.200000000000000000e+01,5.000000000000000000e+00,1.000000000000000000e+00,9.000000000000000000e+00,1.200000000000000000e+01,2.000000000000000000e+01,9.000000000000000000e+00,2.000000000000000000e+01],
[1.200000000000000000e+01,6.000000000000000000e+00,7.000000000000000000e+00,1.100000000000000000e+01,2.100000000000000000e+01,2.100000000000000000e+01,7.000000000000000000e+00,2.000000000000000000e+00,7.000000000000000000e+00,1.100000000000000000e+01,1.900000000000000000e+01,5.000000000000000000e+00,1.300000000000000000e+01,1.100000000000000000e+01,8.000000000000000000e+00,6.000000000000000000e+00,2.100000000000000000e+01,1.700000000000000000e+01,5.000000000000000000e+00,2.500000000000000000e+01,1.700000000000000000e+01,2.100000000000000000e+01,2.300000000000000000e+01,1.100000000000000000e+01,2.500000000000000000e+01,2.500000000000000000e+01,1.400000000000000000e+01,0.000000000000000000e+00,1.200000000000000000e+01,5.000000000000000000e+00,2.500000000000000000e+01,1.100000000000000000e+01]
])