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

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

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.r: I = None
        self.s: F = None
        self.x: E = None
        self.p: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: C = None
        self.r: E = None
        self.p: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: I = None
        self.r: H = None
        self.u: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.u: E = None
        self.t: B = None
        self.y: G = None
        self.txt = txt

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

h = A("h")
m = B("m")
e = C("e")
l = D("l")
c = E("c")
b = F("b")
g = G("g")
f = H("f")
j = I("j")

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

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

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.r: I = None
        self.s: F = None
        self.x: E = None
        self.p: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: C = None
        self.r: E = None
        self.p: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: I = None
        self.r: H = None
        self.u: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.u: E = None
        self.t: B = None
        self.y: G = None
        self.txt = txt

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

h = A("h")
m = B("m")
e = C("e")
l = D("l")
c = E("c")
b = F("b")
g = G("g")
f = H("f")
j = I("j")

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