class A:
    def __init__(self, txt: str):
        self.r: E = None
        self.z: F = None
        self.y: E = None
        self.o: B = None
        self.x: D = None
        self.s: E = None
        self.w: D = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.p: B = None
        self.s: A = None
        self.o: D = None
        self.r: D = None
        self.x: D = None
        self.t: G = None
        self.txt = txt

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.p: B = None
        self.s: A = None
        self.o: D = None
        self.r: D = None
        self.x: D = None
        self.t: G = None
        self.txt = txt

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

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

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