class A:
    def __init__(self, txt: str):
        self.w: I = None
        self.s: H = None
        self.q: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.s: G = None
        self.r: D = None
        self.q: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.v: B = None
        self.u: B = None
        self.o: E = None
        self.x: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: E = None
        self.s: I = None
        self.u: E = None
        self.o: A = None
        self.w: A = None
        self.p: C = None
        self.x: C = None
        self.r: I = None
        self.t: B = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.s: G = None
        self.r: D = None
        self.q: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.v: B = None
        self.u: B = None
        self.o: E = None
        self.x: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: E = None
        self.s: I = None
        self.u: E = None
        self.o: A = None
        self.w: A = None
        self.p: C = None
        self.x: C = None
        self.r: I = None
        self.t: B = None
        self.txt = txt

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

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

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