class A:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: G = None
        self.s: H = None
        self.v: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: J = None
        self.y: C = None
        self.q: I = None
        self.x: C = None
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: H = None
        self.o: H = None
        self.u: H = None
        self.x: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: I = None
        self.q: A = None
        self.o: I = None
        self.t: E = None
        self.r: H = None
        self.p: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.y: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: D = None
        self.q: J = None
        self.z: H = None
        self.x: D = None
        self.s: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.v: E = None
        self.u: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: J = None
        self.y: C = None
        self.q: I = None
        self.x: C = None
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: H = None
        self.o: H = None
        self.u: H = None
        self.x: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: I = None
        self.q: A = None
        self.o: I = None
        self.t: E = None
        self.r: H = None
        self.p: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.y: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: D = None
        self.q: J = None
        self.z: H = None
        self.x: D = None
        self.s: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.v: E = None
        self.u: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: B = None
        self.txt = txt

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

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

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