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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.t: F = None
        self.s: B = None
        self.r: D = None
        self.y: F = None
        self.w: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.z: F = None
        self.v: F = None
        self.s: C = None
        self.q: F = None
        self.p: B = None
        self.r: E = None
        self.o: F = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.t: F = None
        self.s: B = None
        self.r: D = None
        self.y: F = None
        self.w: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.z: F = None
        self.v: F = None
        self.s: C = None
        self.q: F = None
        self.p: B = None
        self.r: E = None
        self.o: F = None
        self.txt = txt

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

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

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