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

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

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

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: E = None
        self.z: H = None
        self.y: A = None
        self.s: B = None
        self.t: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.v: A = None
        self.z: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.r: C = None
        self.o: F = None
        self.s: A = None
        self.w: D = None
        self.x: E = None
        self.v: C = None
        self.z: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: A = None
        self.r: B = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: E = None
        self.z: H = None
        self.y: A = None
        self.s: B = None
        self.t: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.v: A = None
        self.z: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.r: C = None
        self.o: F = None
        self.s: A = None
        self.w: D = None
        self.x: E = None
        self.v: C = None
        self.z: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: A = None
        self.r: B = None
        self.txt = txt

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

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