class A:
    def __init__(self, txt: str):
        self.q: C = None
        self.t: G = None
        self.r: B = None
        self.o: H = None
        self.x: G = None
        self.v: H = None
        self.w: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.v: C = None
        self.q: E = None
        self.o: F = None
        self.p: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.z: C = None
        self.q: E = None
        self.u: E = None
        self.txt = txt

m = A("m")
l = B("l")
e = C("e")
k = D("k")
j = E("j")
h = F("h")
d = G("d")
b = H("b")
i = A("i")

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.v: C = None
        self.q: E = None
        self.o: F = None
        self.p: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.z: C = None
        self.q: E = None
        self.u: E = None
        self.txt = txt

m = A("m")
l = B("l")
e = C("e")
k = D("k")
j = E("j")
h = F("h")
d = G("d")
b = H("b")
i = A("i")

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