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

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.y: E = None
        self.w: C = None
        self.v: F = None
        self.z: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.t: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: C = None
        self.r: F = None
        self.q: D = None
        self.o: B = None
        self.y: A = None
        self.p: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.y: E = None
        self.w: C = None
        self.v: F = None
        self.z: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.t: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: C = None
        self.r: F = None
        self.q: D = None
        self.o: B = None
        self.y: A = None
        self.p: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

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

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