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

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: A = None
        self.r: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: C = None
        self.o: B = None
        self.z: D = None
        self.p: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.p: C = None
        self.u: B = None
        self.txt = txt

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

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

m = A("m")
i = B("i")
b = C("b")
l = D("l")
a = E("a")
j = F("j")
k = G("k")
e = A("e")
d = C("d")
n = D("n")

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

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: A = None
        self.r: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: C = None
        self.o: B = None
        self.z: D = None
        self.p: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.p: C = None
        self.u: B = None
        self.txt = txt

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

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

m = A("m")
i = B("i")
b = C("b")
l = D("l")
a = E("a")
j = F("j")
k = G("k")
e = A("e")
d = C("d")
n = D("n")

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