class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.p: A = None
        self.z: F = None
        self.u: B = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: C = None
        self.p: C = None
        self.v: D = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: C = None
        self.p: C = None
        self.v: D = None
        self.txt = txt

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

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

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