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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: H = None
        self.o: G = None
        self.x: A = None
        self.t: C = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: H = None
        self.o: G = None
        self.x: A = None
        self.t: C = None
        self.txt = txt

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

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