class A:
    def __init__(self, txt: str):
        self.p: B = None
        self.v: H = None
        self.w: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.r: D = None
        self.y: E = None
        self.v: G = None
        self.t: D = None
        self.x: A = None
        self.z: H = None
        self.w: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.r: D = None
        self.y: E = None
        self.v: G = None
        self.t: D = None
        self.x: A = None
        self.z: H = None
        self.w: E = None
        self.txt = txt

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

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