class A:
    def __init__(self, txt: str):
        self.t: E = None
        self.s: H = None
        self.z: B = None
        self.p: D = None
        self.r: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: B = None
        self.r: E = None
        self.q: E = None
        self.s: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.s: A = None
        self.u: E = None
        self.r: F = None
        self.q: D = None
        self.z: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.v: D = None
        self.z: A = None
        self.o: D = None
        self.r: D = None
        self.p: C = None
        self.s: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.o: E = None
        self.v: B = None
        self.x: F = None
        self.y: G = None
        self.z: G = None
        self.w: A = None
        self.u: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.r: A = None
        self.v: A = None
        self.u: D = None
        self.t: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: B = None
        self.r: E = None
        self.q: E = None
        self.s: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.s: A = None
        self.u: E = None
        self.r: F = None
        self.q: D = None
        self.z: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.v: D = None
        self.z: A = None
        self.o: D = None
        self.r: D = None
        self.p: C = None
        self.s: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.o: E = None
        self.v: B = None
        self.x: F = None
        self.y: G = None
        self.z: G = None
        self.w: A = None
        self.u: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.r: A = None
        self.v: A = None
        self.u: D = None
        self.t: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

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

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