class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.p: F = None
        self.u: D = None
        self.v: F = None
        self.o: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: E = None
        self.p: E = None
        self.v: B = None
        self.r: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: G = None
        self.v: G = None
        self.x: J = None
        self.w: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.z: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.z: I = None
        self.x: D = None
        self.r: G = None
        self.o: C = None
        self.w: D = None
        self.t: B = None
        self.p: D = None
        self.u: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: J = None
        self.u: C = None
        self.o: I = None
        self.w: A = None
        self.v: I = None
        self.r: C = None
        self.z: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: D = None
        self.u: A = None
        self.s: J = None
        self.v: D = None
        self.q: C = None
        self.z: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: D = None
        self.s: H = None
        self.u: H = None
        self.p: D = None
        self.t: D = None
        self.x: H = None
        self.z: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: H = None
        self.y: F = None
        self.q: A = None
        self.x: H = None
        self.r: E = None
        self.s: F = None
        self.txt = txt

g = A("g")
m = B("m")
f = C("f")
k = D("k")
a = E("a")
d = F("d")
e = G("e")
j = H("j")
n = I("n")
i = J("i")

g.t = d
m.s = j
m.o = j
m.p = d
m.v = d
m.u = k
f.q = a
f.p = a
f.v = m
f.r = e
k.t = a
k.y = e
k.v = e
k.x = i
k.w = i
a.r = k
a.z = f
d.s = m
d.t = m
d.z = n
d.u = n
d.x = k
d.w = k
d.p = k
d.r = e
d.o = f
e.p = i
e.u = f
e.r = f
e.o = n
e.v = n
e.w = g
e.z = m
j.o = g
j.u = g
j.t = k
j.v = k
j.s = i
j.z = i
j.q = f
n.y = d
n.w = k
n.p = k
n.t = k
n.s = j
n.u = j
n.x = j
n.z = e
i.v = j
i.x = j
i.y = d
i.s = d
i.q = g
i.r = a
assert e.v.w.t.r.w.v.u.t.r.txt == "
class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.p: F = None
        self.u: D = None
        self.v: F = None
        self.o: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: E = None
        self.p: E = None
        self.v: B = None
        self.r: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: G = None
        self.v: G = None
        self.x: J = None
        self.w: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.z: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.z: I = None
        self.x: D = None
        self.r: G = None
        self.o: C = None
        self.w: D = None
        self.t: B = None
        self.p: D = None
        self.u: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: J = None
        self.u: C = None
        self.o: I = None
        self.w: A = None
        self.v: I = None
        self.r: C = None
        self.z: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: D = None
        self.u: A = None
        self.s: J = None
        self.v: D = None
        self.q: C = None
        self.z: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: D = None
        self.s: H = None
        self.u: H = None
        self.p: D = None
        self.t: D = None
        self.x: H = None
        self.z: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: H = None
        self.y: F = None
        self.q: A = None
        self.x: H = None
        self.r: E = None
        self.s: F = None
        self.txt = txt

g = A("g")
m = B("m")
f = C("f")
k = D("k")
a = E("a")
d = F("d")
e = G("e")
j = H("j")
n = I("n")
i = J("i")

g.t = d
m.s = j
m.o = j
m.p = d
m.v = d
m.u = k
f.q = a
f.p = a
f.v = m
f.r = e
k.t = a
k.y = e
k.v = e
k.x = i
k.w = i
a.r = k
a.z = f
d.s = m
d.t = m
d.z = n
d.u = n
d.x = k
d.w = k
d.p = k
d.r = e
d.o = f
e.p = i
e.u = f
e.r = f
e.o = n
e.v = n
e.w = g
e.z = m
j.o = g
j.u = g
j.t = k
j.v = k
j.s = i
j.z = i
j.q = f
n.y = d
n.w = k
n.p = k
n.t = k
n.s = j
n.u = j
n.x = j
n.z = e
i.v = j
i.x = j
i.y = d
i.s = d
i.q = g
i.r = a
assert e.v.w.t.r.w.v.u.t.r.txt == "e"