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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.v: F = None
        self.q: C = None
        self.t: G = None
        self.u: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: A = None
        self.u: F = None
        self.o: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.r: B = None
        self.p: B = None
        self.w: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.p: C = None
        self.w: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.v: F = None
        self.q: C = None
        self.t: G = None
        self.u: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: A = None
        self.u: F = None
        self.o: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.r: B = None
        self.p: B = None
        self.w: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.p: C = None
        self.w: A = None
        self.txt = txt

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

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

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