class A:
    def __init__(self, txt: str):
        self.z: I = None
        self.q: G = None
        self.o: B = None
        self.x: G = None
        self.v: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.s: F = None
        self.y: H = None
        self.r: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.v: F = None
        self.t: A = None
        self.p: G = None
        self.z: H = None
        self.u: H = None
        self.s: F = None
        self.y: A = None
        self.x: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: I = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: G = None
        self.z: F = None
        self.u: C = None
        self.txt = txt

j = A("j")
c = B("c")
i = C("i")
e = D("e")
b = E("b")
k = F("k")
d = G("d")
n = H("n")
h = I("h")

j.z = h
j.q = d
j.x = d
j.o = c
j.v = e
c.y = j
c.v = e
c.p = e
c.u = k
c.x = i
c.r = b
i.w = j
i.s = k
i.y = n
i.r = n
e.o = n
e.z = n
e.u = n
e.v = k
e.s = k
e.t = j
e.y = j
e.p = d
e.x = h
b.y = d
b.z = i
b.o = n
k.p = h
d.p = e
n.s = j
n.r = b
n.w = b
n.p = e
h.q = b
h.t = d
h.z = k
h.u = i
assert e.u.r.y.p.t.z.txt == "
class A:
    def __init__(self, txt: str):
        self.z: I = None
        self.q: G = None
        self.o: B = None
        self.x: G = None
        self.v: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.s: F = None
        self.y: H = None
        self.r: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.v: F = None
        self.t: A = None
        self.p: G = None
        self.z: H = None
        self.u: H = None
        self.s: F = None
        self.y: A = None
        self.x: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: I = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: G = None
        self.z: F = None
        self.u: C = None
        self.txt = txt

j = A("j")
c = B("c")
i = C("i")
e = D("e")
b = E("b")
k = F("k")
d = G("d")
n = H("n")
h = I("h")

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