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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.v: C = None
        self.r: C = None
        self.z: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: D = None
        self.y: J = None
        self.x: H = None
        self.z: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: J = None
        self.y: F = None
        self.w: H = None
        self.q: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: I = None
        self.y: G = None
        self.s: A = None
        self.t: A = None
        self.u: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: J = None
        self.t: H = None
        self.o: H = None
        self.q: J = None
        self.u: E = None
        self.x: F = None
        self.y: B = None
        self.r: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.v: C = None
        self.r: C = None
        self.z: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: D = None
        self.y: J = None
        self.x: H = None
        self.z: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: J = None
        self.y: F = None
        self.w: H = None
        self.q: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: I = None
        self.y: G = None
        self.s: A = None
        self.t: A = None
        self.u: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: J = None
        self.t: H = None
        self.o: H = None
        self.q: J = None
        self.u: E = None
        self.x: F = None
        self.y: B = None
        self.r: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: I = None
        self.txt = txt

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

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