DotBox/yervandsargsyan
DotBox/sus801
f1import mathf1import math
n2lent = []n2vis = []
3widt = []
4high = []3shir = []
4dlina = []
55
6while True:6while True:
n7    lst = input().split(",")n7    s = input().split(",")
8    if len(lst) != 3:8    if len(s) != 3:
9        break9        break
n10    x = lst[0]n10    a = s[0]
11    y = lst[1]11    b = s[1]
12    z = lst[2]12    c = s[2]
1313
n14    lent.append(float(x))n
15    widt.append(float(y))14    vis.append(float(c))
16    high.append(float(z))15    shir.append(float(b))
16    dlina.append(float(a))
1717
n18res = (max(lent)-min(lent))*(max(widt)-min(widt))*(max(high)-min(high))n18result = (max(dlina)-min(dlina))*(max(shir)-min(shir))*(max(vis)-min(vis))
1919
t20print(res)t20print(result)
2121
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op