class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.u: A = None
        self.p: C = None
        self.s: B = None
        self.r: A = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: G = None
        self.u: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.y: D = None
        self.u: D = None
        self.s: E = None
        self.txt = txt

f = A("f")
a = B("a")
j = C("j")
l = D("l")
e = E("e")
h = F("h")
c = G("c")
n = D("n")
k = A("k")

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

class B:
    def __init__(self, txt: str):
        self.q: G = None
        self.u: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.y: D = None
        self.u: D = None
        self.s: E = None
        self.txt = txt

f = A("f")
a = B("a")
j = C("j")
l = D("l")
e = E("e")
h = F("h")
c = G("c")
n = D("n")
k = A("k")

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