class A:
    def __init__(self, txt: str):
        self.r: D = None
        self.y: I = None
        self.p: D = None
        self.t: B = None
        self.x: G = None
        self.z: C = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.o: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: J = None
        self.y: G = None
        self.v: A = None
        self.txt = txt

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.o: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: J = None
        self.y: G = None
        self.v: A = None
        self.txt = txt

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

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

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

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