class A:
    def __init__(self, txt: str):
        self.x: F = None
        self.w: A = None
        self.p: C = None
        self.v: A = None
        self.o: A = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.r: B = None
        self.z: B = None
        self.x: C = None
        self.p: E = None
        self.u: E = None
        self.txt = txt

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

k = A("k")
m = B("m")
d = C("d")
g = D("g")
a = E("a")
f = F("f")
n = B("n")
j = A("j")
i = E("i")
e = B("e")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.r: B = None
        self.z: B = None
        self.x: C = None
        self.p: E = None
        self.u: E = None
        self.txt = txt

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

k = A("k")
m = B("m")
d = C("d")
g = D("g")
a = E("a")
f = F("f")
n = B("n")
j = A("j")
i = E("i")
e = B("e")

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