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

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

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

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

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

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

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

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

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

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

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

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

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

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

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