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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: H = None
        self.s: A = None
        self.y: I = None
        self.z: F = None
        self.o: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.y: E = None
        self.o: B = None
        self.x: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: F = None
        self.y: G = None
        self.x: G = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: H = None
        self.s: A = None
        self.y: I = None
        self.z: F = None
        self.o: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.y: E = None
        self.o: B = None
        self.x: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: F = None
        self.y: G = None
        self.x: G = None
        self.txt = txt

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

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