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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.u: G = None
        self.p: F = None
        self.w: I = None
        self.z: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.r: B = None
        self.u: G = None
        self.x: C = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.x: A = None
        self.r: A = None
        self.q: H = None
        self.v: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.u: G = None
        self.p: F = None
        self.w: I = None
        self.z: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.r: B = None
        self.u: G = None
        self.x: C = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.x: A = None
        self.r: A = None
        self.q: H = None
        self.v: F = None
        self.txt = txt

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

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

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