class A:
    def __init__(self, txt: str):
        self.q: E = None
        self.p: F = None
        self.w: C = None
        self.r: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.r: G = None
        self.p: D = None
        self.s: E = None
        self.w: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.w: B = None
        self.o: B = None
        self.v: C = None
        self.p: G = None
        self.z: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: G = None
        self.r: B = None
        self.s: A = None
        self.z: A = None
        self.o: B = None
        self.w: G = None
        self.y: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.r: G = None
        self.p: D = None
        self.s: E = None
        self.w: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.w: B = None
        self.o: B = None
        self.v: C = None
        self.p: G = None
        self.z: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: G = None
        self.r: B = None
        self.s: A = None
        self.z: A = None
        self.o: B = None
        self.w: G = None
        self.y: F = None
        self.txt = txt

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

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

b.q = j
b.p = m
b.w = h
b.r = h
l.v = i
l.p = i
l.r = c
l.s = j
l.w = h
h.w = f
h.o = l
i.v = h
j.v = i
m.t = k
m.p = k
m.w = l
m.o = l
m.v = h
m.z = i
c.p = k
c.w = k
c.r = l
c.o = l
c.s = b
c.z = b
c.y = m
f.s = m
f.u = i
k.p = c
k.w = c
k.r = l
k.o = l
k.s = b
k.z = b
k.y = m
a.s = m
a.u = i
assert f.s.z.v.txt == "h"