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

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: G = None
        self.x: I = None
        self.u: A = None
        self.o: F = None
        self.r: F = None
        self.t: I = None
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: G = None
        self.t: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: D = None
        self.q: E = None
        self.r: B = None
        self.s: B = None
        self.p: B = None
        self.v: E = None
        self.x: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: G = None
        self.x: I = None
        self.u: A = None
        self.o: F = None
        self.r: F = None
        self.t: I = None
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: G = None
        self.t: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: D = None
        self.q: E = None
        self.r: B = None
        self.s: B = None
        self.p: B = None
        self.v: E = None
        self.x: E = None
        self.txt = txt

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

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