class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: G = None
        self.z: E = None
        self.t: C = None
        self.x: H = None
        self.u: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: A = None
        self.w: A = None
        self.x: J = None
        self.y: I = None
        self.r: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: J = None
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.v: J = None
        self.y: J = None
        self.o: B = None
        self.s: I = None
        self.p: J = None
        self.q: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: C = None
        self.r: C = None
        self.y: I = None
        self.z: G = None
        self.t: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.y: J = None
        self.q: J = None
        self.z: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: H = None
        self.s: C = None
        self.q: G = None
        self.t: J = None
        self.o: F = None
        self.y: D = None
        self.v: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: F = None
        self.z: D = None
        self.v: D = None
        self.x: G = None
        self.t: A = None
        self.txt = txt

e = A("e")
g = B("g")
j = C("j")
h = D("h")
i = E("i")
f = F("f")
d = G("d")
l = H("l")
a = I("a")
c = J("c")

e.o = d
e.s = d
e.z = i
e.t = j
e.u = j
e.x = l
g.s = d
g.r = d
g.v = e
g.w = e
g.x = c
g.y = a
j.x = c
j.s = a
h.r = d
h.v = c
h.y = c
h.p = c
h.q = c
h.o = g
h.s = a
i.x = l
i.q = j
i.r = j
i.y = a
i.z = d
i.t = g
f.x = d
d.v = h
l.r = d
l.y = c
l.q = c
l.z = i
a.w = e
a.r = l
a.s = j
a.v = j
a.q = d
a.t = c
a.o = f
a.y = h
c.o = f
c.z = h
c.v = h
c.x = d
c.t = e
assert f.x.v.o.x.x.v.o.x.t.txt == "
class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: G = None
        self.z: E = None
        self.t: C = None
        self.x: H = None
        self.u: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: A = None
        self.w: A = None
        self.x: J = None
        self.y: I = None
        self.r: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: J = None
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.v: J = None
        self.y: J = None
        self.o: B = None
        self.s: I = None
        self.p: J = None
        self.q: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: C = None
        self.r: C = None
        self.y: I = None
        self.z: G = None
        self.t: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.y: J = None
        self.q: J = None
        self.z: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: H = None
        self.s: C = None
        self.q: G = None
        self.t: J = None
        self.o: F = None
        self.y: D = None
        self.v: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: F = None
        self.z: D = None
        self.v: D = None
        self.x: G = None
        self.t: A = None
        self.txt = txt

e = A("e")
g = B("g")
j = C("j")
h = D("h")
i = E("i")
f = F("f")
d = G("d")
l = H("l")
a = I("a")
c = J("c")

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