class A:
    def __init__(self, txt: str):
        self.w: F = None
        self.x: A = None
        self.y: B = None
        self.z: F = None
        self.q: H = None
        self.t: C = None
        self.u: C = None
        self.r: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.o: G = None
        self.s: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.u: D = None
        self.q: B = None
        self.t: E = None
        self.v: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: E = None
        self.r: C = None
        self.p: E = None
        self.w: E = None
        self.s: D = None
        self.t: C = None
        self.o: F = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.o: G = None
        self.s: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.u: D = None
        self.q: B = None
        self.t: E = None
        self.v: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: E = None
        self.r: C = None
        self.p: E = None
        self.w: E = None
        self.s: D = None
        self.t: C = None
        self.o: F = None
        self.txt = txt

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

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