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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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