class A:
    def __init__(self, txt: str):
        self.o: F = None
        self.p: F = None
        self.t: F = None
        self.w: J = None
        self.s: J = None
        self.q: I = None
        self.x: B = None
        self.z: E = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: B = None
        self.t: C = None
        self.s: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.t: D = None
        self.x: G = None
        self.o: J = None
        self.v: E = None
        self.p: I = None
        self.y: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.y: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: D = None
        self.s: A = None
        self.t: D = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: B = None
        self.t: C = None
        self.s: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.t: D = None
        self.x: G = None
        self.o: J = None
        self.v: E = None
        self.p: I = None
        self.y: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.y: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: D = None
        self.s: A = None
        self.t: D = None
        self.txt = txt

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

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

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