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

class B:
    def __init__(self, txt: str):
        self.r: E = None
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: E = None
        self.t: F = None
        self.txt = txt

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

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

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

j = A("j")
b = B("b")
k = C("k")
a = D("a")
n = E("n")
g = F("g")
m = B("m")
h = C("h")
d = F("d")
e = E("e")

j.r = e
j.y = b
j.x = b
b.r = e
b.x = e
k.o = g
k.t = g
k.q = n
a.q = m
a.v = n
a.z = b
a.o = h
n.v = e
n.y = a
n.q = d
n.s = d
n.x = d
n.r = h
g.o = j
g.p = j
g.t = k
m.r = n
m.x = n
h.o = d
h.q = n
h.t = g
d.o = j
d.p = j
d.t = k
e.v = n
e.y = a
e.q = d
e.s = d
e.x = d
e.r = h
assert d.o.r.v.y.z.x.txt == "
class A:
    def __init__(self, txt: str):
        self.r: E = None
        self.y: B = None
        self.x: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: E = None
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: E = None
        self.t: F = None
        self.txt = txt

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

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

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

j = A("j")
b = B("b")
k = C("k")
a = D("a")
n = E("n")
g = F("g")
m = B("m")
h = C("h")
d = F("d")
e = E("e")

j.r = e
j.y = b
j.x = b
b.r = e
b.x = e
k.o = g
k.t = g
k.q = n
a.q = m
a.v = n
a.z = b
a.o = h
n.v = e
n.y = a
n.q = d
n.s = d
n.x = d
n.r = h
g.o = j
g.p = j
g.t = k
m.r = n
m.x = n
h.o = d
h.q = n
h.t = g
d.o = j
d.p = j
d.t = k
e.v = n
e.y = a
e.q = d
e.s = d
e.x = d
e.r = h
assert d.o.r.v.y.z.x.txt == "e"