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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.o: C = None
        self.y: C = None
        self.w: H = None
        self.p: C = None
        self.u: G = None
        self.r: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: E = None
        self.p: G = None
        self.s: B = None
        self.t: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: I = None
        self.z: I = None
        self.y: A = None
        self.v: A = None
        self.o: A = None
        self.x: A = None
        self.w: B = None
        self.p: D = None
        self.r: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

f = A("f")
d = B("d")
k = C("k")
j = D("j")
e = E("e")
l = F("l")
b = G("b")
c = H("c")
a = I("a")

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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.o: C = None
        self.y: C = None
        self.w: H = None
        self.p: C = None
        self.u: G = None
        self.r: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: E = None
        self.p: G = None
        self.s: B = None
        self.t: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: I = None
        self.z: I = None
        self.y: A = None
        self.v: A = None
        self.o: A = None
        self.x: A = None
        self.w: B = None
        self.p: D = None
        self.r: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

f = A("f")
d = B("d")
k = C("k")
j = D("j")
e = E("e")
l = F("l")
b = G("b")
c = H("c")
a = I("a")

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