class A:
    def __init__(self, txt: str):
        self.t: E = None
        self.u: H = None
        self.w: C = None
        self.o: B = None
        self.q: E = None
        self.s: G = None
        self.v: F = None
        self.p: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: F = None
        self.x: F = None
        self.o: B = None
        self.v: H = None
        self.s: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.x: A = None
        self.s: B = None
        self.o: A = None
        self.z: H = None
        self.y: G = None
        self.q: C = None
        self.v: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.w: A = None
        self.t: C = None
        self.x: H = None
        self.y: A = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: F = None
        self.x: F = None
        self.o: B = None
        self.v: H = None
        self.s: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.x: A = None
        self.s: B = None
        self.o: A = None
        self.z: H = None
        self.y: G = None
        self.q: C = None
        self.v: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.w: A = None
        self.t: C = None
        self.x: H = None
        self.y: A = None
        self.txt = txt

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

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

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