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

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

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.s: A = None
        self.p: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.q: F = None
        self.r: A = None
        self.v: E = None
        self.s: G = None
        self.u: B = None
        self.w: F = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.s: A = None
        self.p: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.q: F = None
        self.r: A = None
        self.v: E = None
        self.s: G = None
        self.u: B = None
        self.w: F = None
        self.txt = txt

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

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

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

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