class A:
    def __init__(self, txt: str):
        self.z: F = None
        self.x: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.r: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.t: B = None
        self.o: E = None
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.y: H = None
        self.w: H = None
        self.v: A = None
        self.o: C = None
        self.s: F = None
        self.z: I = None
        self.u: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.s: H = None
        self.v: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.q: E = None
        self.z: D = None
        self.w: I = None
        self.u: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.q: A = None
        self.r: F = None
        self.y: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.t: B = None
        self.r: F = None
        self.q: I = None
        self.y: I = None
        self.w: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: D = None
        self.s: C = None
        self.v: A = None
        self.t: J = None
        self.q: E = None
        self.x: B = None
        self.y: G = None
        self.o: C = None
        self.r: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.r: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.t: B = None
        self.o: E = None
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.y: H = None
        self.w: H = None
        self.v: A = None
        self.o: C = None
        self.s: F = None
        self.z: I = None
        self.u: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.s: H = None
        self.v: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.q: E = None
        self.z: D = None
        self.w: I = None
        self.u: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.q: A = None
        self.r: F = None
        self.y: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.t: B = None
        self.r: F = None
        self.q: I = None
        self.y: I = None
        self.w: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: D = None
        self.s: C = None
        self.v: A = None
        self.t: J = None
        self.q: E = None
        self.x: B = None
        self.y: G = None
        self.o: C = None
        self.r: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: C = None
        self.txt = txt

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

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