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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.y: D = None
        self.x: C = None
        self.o: I = None
        self.r: J = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.y: D = None
        self.x: C = None
        self.o: I = None
        self.r: J = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

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

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