class A:
    def __init__(self, txt: str):
        self.p: H = None
        self.t: A = None
        self.y: F = None
        self.u: H = None
        self.q: E = None
        self.v: C = None
        self.s: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.u: A = None
        self.y: F = None
        self.t: A = None
        self.p: F = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.s: D = None
        self.z: H = None
        self.w: B = None
        self.r: D = None
        self.y: D = None
        self.q: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.t: C = None
        self.w: E = None
        self.r: G = None
        self.o: E = None
        self.s: A = None
        self.v: C = None
        self.u: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.x: B = None
        self.t: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.u: A = None
        self.y: F = None
        self.t: A = None
        self.p: F = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.s: D = None
        self.z: H = None
        self.w: B = None
        self.r: D = None
        self.y: D = None
        self.q: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.t: C = None
        self.w: E = None
        self.r: G = None
        self.o: E = None
        self.s: A = None
        self.v: C = None
        self.u: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.x: B = None
        self.t: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: A = None
        self.txt = txt

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

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