class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.r: F = None
        self.x: A = None
        self.o: B = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

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

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

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

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