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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: G = None
        self.o: D = None
        self.r: A = None
        self.t: C = None
        self.w: G = None
        self.v: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.q: G = None
        self.y: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: I = None
        self.z: C = None
        self.u: D = None
        self.r: D = None
        self.w: D = None
        self.x: B = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: G = None
        self.o: D = None
        self.r: A = None
        self.t: C = None
        self.w: G = None
        self.v: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.q: G = None
        self.y: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: I = None
        self.z: C = None
        self.u: D = None
        self.r: D = None
        self.w: D = None
        self.x: B = None
        self.txt = txt

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

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

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

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