class A:
    def __init__(self, txt: str):
        self.y: H = None
        self.s: C = None
        self.u: G = None
        self.t: A = None
        self.q: A = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: F = None
        self.s: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.x: F = None
        self.t: B = None
        self.p: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.q: E = None
        self.t: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: F = None
        self.s: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.x: F = None
        self.t: B = None
        self.p: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.q: E = None
        self.t: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

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

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