class A:
    def __init__(self, txt: str):
        self.o: F = None
        self.s: I = None
        self.y: F = None
        self.t: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.s: D = None
        self.y: C = None
        self.t: I = None
        self.u: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: D = None
        self.r: C = None
        self.p: A = None
        self.u: D = None
        self.s: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: B = None
        self.v: A = None
        self.s: A = None
        self.o: B = None
        self.x: B = None
        self.r: H = None
        self.txt = txt

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

l.o = c
l.y = c
l.s = k
l.t = m
m.q = n
m.u = n
m.v = n
m.z = c
m.w = k
m.t = l
m.s = d
m.r = f
e.u = n
e.r = m
n.r = e
d.q = a
d.s = n
d.y = e
d.t = k
d.u = c
c.y = k
c.q = k
a.z = d
f.y = n
f.u = n
f.r = e
f.p = l
f.s = d
k.t = m
k.y = m
k.o = m
k.x = m
k.v = l
k.s = l
k.r = f
assert k.r.p.t.v.r.u.r.u.r.txt == "
class A:
    def __init__(self, txt: str):
        self.o: F = None
        self.s: I = None
        self.y: F = None
        self.t: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.s: D = None
        self.y: C = None
        self.t: I = None
        self.u: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: D = None
        self.r: C = None
        self.p: A = None
        self.u: D = None
        self.s: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: B = None
        self.v: A = None
        self.s: A = None
        self.o: B = None
        self.x: B = None
        self.r: H = None
        self.txt = txt

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

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