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

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

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.y: E = None
        self.w: E = None
        self.p: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.x: A = None
        self.q: C = None
        self.y: C = None
        self.o: B = None
        self.t: F = None
        self.w: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.s: F = None
        self.v: F = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.y: E = None
        self.w: E = None
        self.p: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.x: A = None
        self.q: C = None
        self.y: C = None
        self.o: B = None
        self.t: F = None
        self.w: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.s: F = None
        self.v: F = None
        self.txt = txt

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

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