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

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: G = None
        self.t: A = None
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: G = None
        self.w: F = None
        self.u: G = None
        self.q: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.q: B = None
        self.txt = txt

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

e.w = l
e.y = k
e.t = c
e.p = d
c.w = d
c.v = d
c.t = e
c.z = f
i.z = g
i.p = d
i.u = d
i.w = l
i.q = l
g.y = c
g.v = c
g.s = f
g.u = f
g.w = e
f.z = e
f.w = e
f.y = i
f.x = l
f.t = l
f.u = l
f.q = l
l.t = e
l.u = d
l.s = i
d.t = i
d.q = k
j.y = k
j.s = f
j.u = f
j.w = e
j.v = c
k.w = d
k.v = d
k.t = e
k.z = f
assert i.q.s.u.q.t.y.txt == "
class A:
    def __init__(self, txt: str):
        self.w: F = None
        self.y: B = None
        self.t: B = None
        self.p: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: G = None
        self.t: A = None
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: G = None
        self.w: F = None
        self.u: G = None
        self.q: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.q: B = None
        self.txt = txt

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

e.w = l
e.y = k
e.t = c
e.p = d
c.w = d
c.v = d
c.t = e
c.z = f
i.z = g
i.p = d
i.u = d
i.w = l
i.q = l
g.y = c
g.v = c
g.s = f
g.u = f
g.w = e
f.z = e
f.w = e
f.y = i
f.x = l
f.t = l
f.u = l
f.q = l
l.t = e
l.u = d
l.s = i
d.t = i
d.q = k
j.y = k
j.s = f
j.u = f
j.w = e
j.v = c
k.w = d
k.v = d
k.t = e
k.z = f
assert i.q.s.u.q.t.y.txt == "k"