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

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

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: A = None
        self.x: C = None
        self.w: C = None
        self.s: A = None
        self.q: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: A = None
        self.x: C = None
        self.w: C = None
        self.s: A = None
        self.q: D = None
        self.txt = txt

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

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