class A:
    def __init__(self, txt: str):
        self.x: F = None
        self.t: B = None
        self.v: E = None
        self.q: C = None
        self.z: E = None
        self.p: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.u: F = None
        self.v: F = None
        self.x: J = None
        self.r: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.z: B = None
        self.y: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.q: F = None
        self.x: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: E = None
        self.r: C = None
        self.p: E = None
        self.x: E = None
        self.o: B = None
        self.u: E = None
        self.w: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: G = None
        self.p: C = None
        self.s: E = None
        self.u: G = None
        self.v: B = None
        self.x: I = None
        self.r: G = None
        self.w: H = None
        self.o: G = None
        self.txt = txt

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

j.x = e
j.t = m
j.v = h
j.z = h
j.q = a
j.p = a
m.p = g
m.u = e
m.v = e
m.x = k
m.r = j
a.w = l
i.q = c
i.z = m
i.y = g
h.p = a
h.q = e
h.x = j
e.o = i
g.s = k
g.q = a
g.u = i
c.x = g
l.z = h
l.p = h
l.x = h
l.u = h
l.r = a
l.o = m
l.w = k
k.t = i
k.y = g
k.u = g
k.r = g
k.o = g
k.p = a
k.s = h
k.v = m
k.x = l
k.w = c
assert h.q.o.q.x.u.q.txt == "
class A:
    def __init__(self, txt: str):
        self.x: F = None
        self.t: B = None
        self.v: E = None
        self.q: C = None
        self.z: E = None
        self.p: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.u: F = None
        self.v: F = None
        self.x: J = None
        self.r: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.z: B = None
        self.y: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.q: F = None
        self.x: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: E = None
        self.r: C = None
        self.p: E = None
        self.x: E = None
        self.o: B = None
        self.u: E = None
        self.w: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: G = None
        self.p: C = None
        self.s: E = None
        self.u: G = None
        self.v: B = None
        self.x: I = None
        self.r: G = None
        self.w: H = None
        self.o: G = None
        self.txt = txt

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

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