class A:
    def __init__(self, txt: str):
        self.p: E = None
        self.z: F = None
        self.r: G = None
        self.v: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: G = None
        self.t: A = None
        self.r: A = None
        self.s: E = None
        self.x: G = None
        self.w: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: A = None
        self.q: E = None
        self.u: G = None
        self.p: D = None
        self.w: E = None
        self.x: F = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: E = None
        self.s: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: G = None
        self.t: A = None
        self.r: A = None
        self.s: E = None
        self.x: G = None
        self.w: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: A = None
        self.q: E = None
        self.u: G = None
        self.p: D = None
        self.w: E = None
        self.x: F = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: E = None
        self.s: B = None
        self.txt = txt

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

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