class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.v: E = None
        self.q: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: D = None
        self.t: A = None
        self.v: B = None
        self.s: C = None
        self.r: B = None
        self.y: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: E = None
        self.p: B = None
        self.z: B = None
        self.t: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.o: E = None
        self.w: C = None
        self.q: C = None
        self.s: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.q: C = None
        self.s: A = None
        self.u: C = None
        self.x: D = None
        self.t: E = None
        self.txt = txt

e = A("e")
n = B("n")
g = C("g")
h = D("h")
k = E("k")
i = F("i")
l = E("l")
c = B("c")

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

class B:
    def __init__(self, txt: str):
        self.w: D = None
        self.t: A = None
        self.v: B = None
        self.s: C = None
        self.r: B = None
        self.y: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: E = None
        self.p: B = None
        self.z: B = None
        self.t: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.o: E = None
        self.w: C = None
        self.q: C = None
        self.s: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.q: C = None
        self.s: A = None
        self.u: C = None
        self.x: D = None
        self.t: E = None
        self.txt = txt

e = A("e")
n = B("n")
g = C("g")
h = D("h")
k = E("k")
i = F("i")
l = E("l")
c = B("c")

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