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

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

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

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.r: H = None
        self.w: H = None
        self.s: H = None
        self.q: E = None
        self.o: B = None
        self.u: F = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.r: C = None
        self.y: F = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.r: H = None
        self.w: H = None
        self.s: H = None
        self.q: E = None
        self.o: B = None
        self.u: F = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.r: C = None
        self.y: F = None
        self.txt = txt

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

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