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

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

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

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

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

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

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

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

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