class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.y: E = None
        self.u: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.v: D = None
        self.r: B = None
        self.p: G = None
        self.q: A = None
        self.w: A = None
        self.y: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: E = None
        self.w: C = None
        self.r: B = None
        self.v: I = None
        self.t: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: H = None
        self.r: G = None
        self.u: C = None
        self.w: B = None
        self.t: G = None
        self.p: G = None
        self.s: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.y: E = None
        self.u: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.v: D = None
        self.r: B = None
        self.p: G = None
        self.q: A = None
        self.w: A = None
        self.y: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: E = None
        self.w: C = None
        self.r: B = None
        self.v: I = None
        self.t: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: H = None
        self.r: G = None
        self.u: C = None
        self.w: B = None
        self.t: G = None
        self.p: G = None
        self.s: C = None
        self.txt = txt

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

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