class A:
    def __init__(self, txt: str):
        self.v: C = None
        self.o: E = None
        self.x: H = None
        self.s: C = None
        self.t: C = None
        self.w: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: B = None
        self.w: H = None
        self.s: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.o: H = None
        self.z: H = None
        self.r: E = None
        self.v: H = None
        self.x: D = None
        self.w: A = None
        self.s: D = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: B = None
        self.w: H = None
        self.s: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.o: H = None
        self.z: H = None
        self.r: E = None
        self.v: H = None
        self.x: D = None
        self.w: A = None
        self.s: D = None
        self.txt = txt

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

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

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