class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.o: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: B = None
        self.o: H = None
        self.txt = txt

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

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: B = None
        self.o: H = None
        self.txt = txt

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

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

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

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

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

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