class A:
    def __init__(self, txt: str):
        self.x: B = None
        self.r: G = None
        self.o: G = None
        self.u: G = None
        self.q: G = None
        self.v: D = None
        self.y: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: D = None
        self.p: F = None
        self.z: D = None
        self.x: G = None
        self.q: F = None
        self.w: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.r: D = None
        self.p: B = None
        self.v: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.x: A = None
        self.r: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: D = None
        self.p: F = None
        self.z: D = None
        self.x: G = None
        self.q: F = None
        self.w: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.r: D = None
        self.p: B = None
        self.v: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.x: A = None
        self.r: F = None
        self.txt = txt

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

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