class A:
    def __init__(self, txt: str):
        self.z: B = None
        self.o: E = None
        self.v: I = None
        self.y: G = None
        self.s: F = None
        self.p: H = None
        self.u: J = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.z: E = None
        self.w: H = None
        self.y: J = None
        self.s: F = None
        self.t: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: C = None
        self.v: D = None
        self.s: C = None
        self.o: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.w: D = None
        self.x: J = None
        self.r: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

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

g = A("g")
j = B("j")
m = C("m")
k = D("k")
f = E("f")
a = F("a")
d = G("d")
n = H("n")
i = I("i")
l = J("l")

g.z = j
g.o = f
g.v = i
g.y = d
g.s = a
g.p = n
g.u = l
j.y = n
j.z = g
m.v = n
m.s = g
m.x = g
m.z = l
m.o = l
m.w = k
m.y = k
m.p = i
m.u = i
m.r = f
k.p = d
k.z = f
k.w = n
k.y = l
k.s = a
k.t = j
f.p = a
f.z = m
f.s = m
f.v = k
f.o = l
a.t = n
a.z = d
a.r = l
a.v = g
d.y = f
d.r = f
d.w = k
d.x = l
n.x = f
n.w = f
n.u = f
n.q = l
n.y = m
n.s = m
n.t = j
i.p = d
l.r = d
assert k.y.r.y.v.t.y.q.txt == "
class A:
    def __init__(self, txt: str):
        self.z: B = None
        self.o: E = None
        self.v: I = None
        self.y: G = None
        self.s: F = None
        self.p: H = None
        self.u: J = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.z: E = None
        self.w: H = None
        self.y: J = None
        self.s: F = None
        self.t: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: C = None
        self.v: D = None
        self.s: C = None
        self.o: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.w: D = None
        self.x: J = None
        self.r: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

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

g = A("g")
j = B("j")
m = C("m")
k = D("k")
f = E("f")
a = F("a")
d = G("d")
n = H("n")
i = I("i")
l = J("l")

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