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

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.s: F = None
        self.y: F = None
        self.v: C = None
        self.z: G = None
        self.o: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: A = None
        self.p: G = None
        self.y: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.v: E = None
        self.z: D = None
        self.o: E = None
        self.t: D = None
        self.q: J = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.s: F = None
        self.y: F = None
        self.v: C = None
        self.z: G = None
        self.o: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: A = None
        self.p: G = None
        self.y: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.v: E = None
        self.z: D = None
        self.o: E = None
        self.t: D = None
        self.q: J = None
        self.txt = txt

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

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

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