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

class B:
    def __init__(self, txt: str):
        self.r: E = None
        self.t: D = None
        self.s: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.z: H = None
        self.w: I = None
        self.p: G = None
        self.t: C = None
        self.o: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: G = None
        self.q: D = None
        self.o: E = None
        self.u: A = None
        self.t: A = None
        self.w: G = None
        self.v: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = 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.p: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: E = None
        self.t: D = None
        self.s: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.z: H = None
        self.w: I = None
        self.p: G = None
        self.t: C = None
        self.o: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: G = None
        self.q: D = None
        self.o: E = None
        self.u: A = None
        self.t: A = None
        self.w: G = None
        self.v: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = 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.p: E = None
        self.txt = txt

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

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