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

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.w: D = None
        self.s: A = None
        self.o: A = None
        self.y: H = None
        self.t: G = None
        self.p: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.t: H = None
        self.v: C = None
        self.r: G = None
        self.o: G = None
        self.txt = txt

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

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

j = A("j")
k = B("k")
a = C("a")
m = D("m")
i = E("i")
n = F("n")
b = G("b")
e = H("e")
d = B("d")
f = A("f")

j.x = b
j.t = n
j.r = n
j.p = a
j.v = a
j.y = m
j.u = i
k.r = b
k.s = b
k.o = e
a.r = n
a.p = n
a.t = i
a.o = k
m.s = b
m.y = b
i.r = f
i.o = f
i.w = m
i.s = j
i.y = e
i.p = e
i.t = b
n.z = i
n.t = e
n.v = a
n.r = b
n.o = b
b.w = m
e.v = a
e.t = i
d.r = b
d.s = b
d.o = e
f.x = b
f.t = n
f.r = n
f.p = a
f.v = a
f.y = m
f.u = i
assert i.r.y.y.w.s.w.s.w.txt == "
class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: F = None
        self.p: C = None
        self.r: F = None
        self.y: D = None
        self.v: C = None
        self.u: E = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.w: D = None
        self.s: A = None
        self.o: A = None
        self.y: H = None
        self.t: G = None
        self.p: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.t: H = None
        self.v: C = None
        self.r: G = None
        self.o: G = None
        self.txt = txt

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

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

j = A("j")
k = B("k")
a = C("a")
m = D("m")
i = E("i")
n = F("n")
b = G("b")
e = H("e")
d = B("d")
f = A("f")

j.x = b
j.t = n
j.r = n
j.p = a
j.v = a
j.y = m
j.u = i
k.r = b
k.s = b
k.o = e
a.r = n
a.p = n
a.t = i
a.o = k
m.s = b
m.y = b
i.r = f
i.o = f
i.w = m
i.s = j
i.y = e
i.p = e
i.t = b
n.z = i
n.t = e
n.v = a
n.r = b
n.o = b
b.w = m
e.v = a
e.t = i
d.r = b
d.s = b
d.o = e
f.x = b
f.t = n
f.r = n
f.p = a
f.v = a
f.y = m
f.u = i
assert i.r.y.y.w.s.w.s.w.txt == "m"