class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.o: C = None
        self.u: F = None
        self.r: H = None
        self.v: C = None
        self.y: H = None
        self.x: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.x: F = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.o: C = None
        self.u: F = None
        self.r: H = None
        self.v: C = None
        self.y: H = None
        self.x: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.x: F = None
        self.txt = txt

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

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

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

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

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

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