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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.o: A = None
        self.x: C = None
        self.w: B = None
        self.y: G = None
        self.s: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.s: D = None
        self.y: C = None
        self.z: G = None
        self.t: G = None
        self.v: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: E = None
        self.o: B = None
        self.x: F = None
        self.u: D = None
        self.p: F = None
        self.txt = txt

l = A("l")
k = B("k")
e = C("e")
d = D("d")
j = E("j")
g = F("g")
h = G("h")
i = B("i")
c = F("c")
f = C("f")

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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.o: A = None
        self.x: C = None
        self.w: B = None
        self.y: G = None
        self.s: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.s: D = None
        self.y: C = None
        self.z: G = None
        self.t: G = None
        self.v: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: E = None
        self.o: B = None
        self.x: F = None
        self.u: D = None
        self.p: F = None
        self.txt = txt

l = A("l")
k = B("k")
e = C("e")
d = D("d")
j = E("j")
g = F("g")
h = G("h")
i = B("i")
c = F("c")
f = C("f")

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