class A:
    def __init__(self, txt: str):
        self.q: E = None
        self.p: C = None
        self.z: G = None
        self.v: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.s: H = None
        self.x: D = None
        self.q: E = None
        self.t: G = None
        self.u: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: C = None
        self.v: B = None
        self.x: B = None
        self.u: B = None
        self.r: C = None
        self.z: F = None
        self.s: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: E = None
        self.t: G = None
        self.s: E = None
        self.v: B = None
        self.txt = txt

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

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

n = A("n")
e = B("e")
b = C("b")
c = D("c")
f = E("f")
i = F("i")
l = G("l")
k = H("k")
g = D("g")
m = C("m")

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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.s: H = None
        self.x: D = None
        self.q: E = None
        self.t: G = None
        self.u: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: C = None
        self.v: B = None
        self.x: B = None
        self.u: B = None
        self.r: C = None
        self.z: F = None
        self.s: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: E = None
        self.t: G = None
        self.s: E = None
        self.v: B = None
        self.txt = txt

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

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

n = A("n")
e = B("e")
b = C("b")
c = D("c")
f = E("f")
i = F("i")
l = G("l")
k = H("k")
g = D("g")
m = C("m")

n.q = f
n.p = b
n.z = l
n.v = g
e.w = b
e.s = k
e.x = g
e.q = f
e.t = l
e.u = m
b.y = m
b.r = m
b.v = e
b.x = e
b.u = e
b.z = i
b.s = c
c.s = l
c.y = i
c.x = i
f.q = e
f.w = l
i.z = l
i.t = l
i.u = f
i.s = f
i.v = e
l.y = f
l.p = f
l.v = e
l.w = b
l.x = i
k.x = n
g.s = l
g.y = i
g.x = i
m.y = b
m.r = b
m.v = e
m.x = e
m.u = e
m.z = i
m.s = c
assert n.v.s.v.u.z.v.t.txt == "l"