class A:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: C = None
        self.r: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: I = None
        self.p: G = None
        self.s: G = None
        self.t: F = None
        self.w: I = None
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: D = None
        self.t: A = None
        self.x: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.o: I = None
        self.q: G = None
        self.p: G = None
        self.s: H = None
        self.y: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.r: A = None
        self.t: E = None
        self.z: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: I = None
        self.x: I = None
        self.q: F = None
        self.r: B = None
        self.t: A = None
        self.v: F = None
        self.y: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: D = None
        self.z: F = None
        self.v: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: E = None
        self.p: A = None
        self.v: A = None
        self.y: H = None
        self.r: D = None
        self.w: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: I = None
        self.p: G = None
        self.s: G = None
        self.t: F = None
        self.w: I = None
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: D = None
        self.t: A = None
        self.x: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.o: I = None
        self.q: G = None
        self.p: G = None
        self.s: H = None
        self.y: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.r: A = None
        self.t: E = None
        self.z: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: I = None
        self.x: I = None
        self.q: F = None
        self.r: B = None
        self.t: A = None
        self.v: F = None
        self.y: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: D = None
        self.z: F = None
        self.v: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: E = None
        self.p: A = None
        self.v: A = None
        self.y: H = None
        self.r: D = None
        self.w: F = None
        self.txt = txt

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

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