class A:
    def __init__(self, txt: str):
        self.w: F = None
        self.p: I = None
        self.u: D = None
        self.r: E = None
        self.v: G = None
        self.t: F = None
        self.s: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.o: I = None
        self.v: D = None
        self.r: I = None
        self.w: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: B = None
        self.w: D = None
        self.z: H = None
        self.o: B = None
        self.p: G = None
        self.r: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: E = None
        self.o: A = None
        self.q: A = None
        self.v: I = None
        self.z: D = None
        self.x: H = None
        self.p: H = None
        self.u: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: F = None
        self.r: F = None
        self.v: J = None
        self.w: C = None
        self.o: G = None
        self.u: B = None
        self.y: E = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.o: I = None
        self.v: D = None
        self.r: I = None
        self.w: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: B = None
        self.w: D = None
        self.z: H = None
        self.o: B = None
        self.p: G = None
        self.r: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: E = None
        self.o: A = None
        self.q: A = None
        self.v: I = None
        self.z: D = None
        self.x: H = None
        self.p: H = None
        self.u: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: F = None
        self.r: F = None
        self.v: J = None
        self.w: C = None
        self.o: G = None
        self.u: B = None
        self.y: E = None
        self.txt = txt

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

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

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