class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: I = None
        self.t: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.o: H = None
        self.z: H = None
        self.v: I = None
        self.w: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: B = None
        self.y: F = None
        self.q: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: F = None
        self.w: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.p: B = None
        self.t: D = None
        self.w: I = None
        self.z: D = None
        self.o: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.r: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: B = None
        self.p: E = None
        self.r: E = None
        self.v: D = None
        self.t: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.o: H = None
        self.z: H = None
        self.v: I = None
        self.w: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: B = None
        self.y: F = None
        self.q: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: F = None
        self.w: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.p: B = None
        self.t: D = None
        self.w: I = None
        self.z: D = None
        self.o: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.r: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: B = None
        self.p: E = None
        self.r: E = None
        self.v: D = None
        self.t: D = None
        self.txt = txt

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

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