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

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.u: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: A = None
        self.x: F = None
        self.z: E = None
        self.q: F = None
        self.txt = txt

k = A("k")
b = B("b")
g = C("g")
f = D("f")
m = E("m")
e = F("e")
j = G("j")
i = D("i")
n = B("n")
c = C("c")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.u: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: A = None
        self.x: F = None
        self.z: E = None
        self.q: F = None
        self.txt = txt

k = A("k")
b = B("b")
g = C("g")
f = D("f")
m = E("m")
e = F("e")
j = G("j")
i = D("i")
n = B("n")
c = C("c")

k.t = e
k.y = n
k.w = i
b.r = e
b.t = e
b.z = k
b.u = f
b.s = m
g.z = j
g.s = e
g.q = i
g.w = m
f.z = n
f.y = k
f.v = e
f.x = j
m.x = j
m.u = f
e.s = c
e.r = c
e.p = g
e.u = k
e.x = k
j.v = k
j.o = k
j.x = e
j.q = e
j.z = m
i.z = n
i.y = k
i.v = e
i.x = j
n.r = e
n.t = e
n.z = k
n.u = i
n.s = m
c.z = j
c.s = e
c.q = i
c.w = m
assert k.t.p.s.txt == "e"