class A:
    def __init__(self, txt: str):
        self.x: I = None
        self.r: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.o: I = None
        self.x: C = None
        self.t: A = None
        self.u: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: I = None
        self.u: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.t: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.t: I = None
        self.r: D = None
        self.o: C = None
        self.x: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: G = None
        self.q: F = None
        self.x: C = None
        self.t: I = None
        self.z: E = None
        self.w: B = None
        self.o: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: A = None
        self.y: F = None
        self.r: D = None
        self.x: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: H = None
        self.s: A = None
        self.y: E = None
        self.w: G = None
        self.t: B = None
        self.u: E = None
        self.p: I = None
        self.v: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.o: I = None
        self.x: C = None
        self.t: A = None
        self.u: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: I = None
        self.u: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.t: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.t: I = None
        self.r: D = None
        self.o: C = None
        self.x: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: G = None
        self.q: F = None
        self.x: C = None
        self.t: I = None
        self.z: E = None
        self.w: B = None
        self.o: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: A = None
        self.y: F = None
        self.r: D = None
        self.x: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: H = None
        self.s: A = None
        self.y: E = None
        self.w: G = None
        self.t: B = None
        self.u: E = None
        self.p: I = None
        self.v: E = None
        self.txt = txt

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

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