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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.r: B = None
        self.t: G = None
        self.q: E = None
        self.y: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.u: E = None
        self.y: C = None
        self.q: G = None
        self.o: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: E = None
        self.u: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.r: B = None
        self.t: G = None
        self.q: E = None
        self.y: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.u: E = None
        self.y: C = None
        self.q: G = None
        self.o: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: E = None
        self.u: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: E = None
        self.txt = txt

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

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