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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.o: A = None
        self.x: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: A = None
        self.q: B = None
        self.t: D = None
        self.txt = txt

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

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

c = A("c")
b = B("b")
m = C("m")
j = D("j")
d = E("d")
g = F("g")
n = D("n")
e = A("e")
l = B("l")

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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.o: A = None
        self.x: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: A = None
        self.q: B = None
        self.t: D = None
        self.txt = txt

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

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

c = A("c")
b = B("b")
m = C("m")
j = D("j")
d = E("d")
g = F("g")
n = D("n")
e = A("e")
l = B("l")

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