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

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

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: H = None
        self.o: E = None
        self.v: A = None
        self.w: J = None
        self.r: H = None
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: F = None
        self.z: C = None
        self.y: H = None
        self.v: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: H = None
        self.s: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.r: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: F = None
        self.v: H = None
        self.x: F = None
        self.t: H = None
        self.txt = txt

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

e = A("e")
f = B("f")
l = C("l")
c = D("c")
i = E("i")
b = F("b")
g = G("g")
k = H("k")
m = I("m")
j = J("j")

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

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

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: H = None
        self.o: E = None
        self.v: A = None
        self.w: J = None
        self.r: H = None
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: F = None
        self.z: C = None
        self.y: H = None
        self.v: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: H = None
        self.s: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.r: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: F = None
        self.v: H = None
        self.x: F = None
        self.t: H = None
        self.txt = txt

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

e = A("e")
f = B("f")
l = C("l")
c = D("c")
i = E("i")
b = F("b")
g = G("g")
k = H("k")
m = I("m")
j = J("j")

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