class A:
    def __init__(self, txt: str):
        self.v: H = None
        self.o: E = None
        self.s: G = None
        self.q: G = None
        self.u: H = None
        self.y: G = None
        self.w: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.x: F = None
        self.y: I = None
        self.z: F = None
        self.r: I = None
        self.v: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: B = None
        self.s: G = None
        self.x: G = None
        self.r: H = None
        self.t: H = None
        self.q: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.y: D = None
        self.z: I = None
        self.s: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: I = None
        self.t: H = None
        self.y: D = None
        self.r: H = None
        self.u: H = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.x: F = None
        self.y: I = None
        self.z: F = None
        self.r: I = None
        self.v: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: B = None
        self.s: G = None
        self.x: G = None
        self.r: H = None
        self.t: H = None
        self.q: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.y: D = None
        self.z: I = None
        self.s: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: I = None
        self.t: H = None
        self.y: D = None
        self.r: H = None
        self.u: H = None
        self.txt = txt

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

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

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

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