class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.v: H = None
        self.z: H = None
        self.o: I = None
        self.t: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.q: H = None
        self.y: G = None
        self.p: C = None
        self.v: B = None
        self.r: A = None
        self.u: E = None
        self.o: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.x: F = None
        self.p: C = None
        self.y: F = None
        self.q: G = None
        self.o: G = None
        self.z: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: I = None
        self.t: B = None
        self.r: B = None
        self.v: H = None
        self.o: I = None
        self.s: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.x: D = None
        self.t: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: E = None
        self.t: C = None
        self.s: F = None
        self.r: D = None
        self.u: F = None
        self.q: F = None
        self.v: A = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.q: H = None
        self.y: G = None
        self.p: C = None
        self.v: B = None
        self.r: A = None
        self.u: E = None
        self.o: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.x: F = None
        self.p: C = None
        self.y: F = None
        self.q: G = None
        self.o: G = None
        self.z: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: I = None
        self.t: B = None
        self.r: B = None
        self.v: H = None
        self.o: I = None
        self.s: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.x: D = None
        self.t: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: E = None
        self.t: C = None
        self.s: F = None
        self.r: D = None
        self.u: F = None
        self.q: F = None
        self.v: A = None
        self.txt = txt

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

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