class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.q: H = None
        self.s: J = None
        self.r: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: J = None
        self.w: C = None
        self.q: E = None
        self.y: A = None
        self.s: G = None
        self.u: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.x: I = None
        self.z: I = None
        self.o: H = None
        self.p: H = None
        self.s: A = None
        self.w: F = None
        self.u: J = None
        self.v: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: J = None
        self.o: G = None
        self.q: J = None
        self.u: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: J = None
        self.s: G = None
        self.q: F = None
        self.w: D = None
        self.r: F = None
        self.t: F = None
        self.o: D = None
        self.z: H = None
        self.txt = txt

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

k = A("k")
b = B("b")
a = C("a")
e = D("e")
g = E("g")
f = F("f")
h = G("h")
i = H("i")
l = I("l")
c = J("c")

k.x = h
k.q = i
k.s = c
k.r = e
b.w = i
a.x = l
e.t = c
e.w = a
e.q = g
e.y = k
e.s = h
e.u = h
g.q = i
g.o = i
g.p = i
g.x = l
g.z = l
g.s = k
g.w = f
g.u = c
g.v = a
f.r = g
h.z = a
h.p = b
h.s = f
h.o = i
h.y = i
h.t = i
h.r = i
h.q = c
i.y = c
i.q = c
i.o = h
i.u = g
l.y = c
l.s = h
l.q = f
l.r = f
l.t = f
l.w = e
l.o = e
l.z = i
c.y = g
c.w = g
c.r = k
c.x = e
c.z = e
c.u = e
c.s = i
c.o = i
c.v = a
assert i.o.o.q.u.y.s.z.t.x.u.txt == "
class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.q: H = None
        self.s: J = None
        self.r: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: J = None
        self.w: C = None
        self.q: E = None
        self.y: A = None
        self.s: G = None
        self.u: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.x: I = None
        self.z: I = None
        self.o: H = None
        self.p: H = None
        self.s: A = None
        self.w: F = None
        self.u: J = None
        self.v: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: J = None
        self.o: G = None
        self.q: J = None
        self.u: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: J = None
        self.s: G = None
        self.q: F = None
        self.w: D = None
        self.r: F = None
        self.t: F = None
        self.o: D = None
        self.z: H = None
        self.txt = txt

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

k = A("k")
b = B("b")
a = C("a")
e = D("e")
g = E("g")
f = F("f")
h = G("h")
i = H("i")
l = I("l")
c = J("c")

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