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

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

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.u: D = None
        self.r: B = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.u: D = None
        self.r: B = None
        self.txt = txt

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

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

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

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