class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.s: E = None
        self.w: H = None
        self.z: C = None
        self.p: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: C = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.v: C = None
        self.p: H = None
        self.w: B = None
        self.y: B = None
        self.u: F = None
        self.z: H = None
        self.t: C = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: H = None
        self.z: H = None
        self.s: A = None
        self.t: F = None
        self.r: F = None
        self.o: G = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: G = None
        self.o: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.s: D = None
        self.z: C = None
        self.v: B = None
        self.q: C = None
        self.x: A = None
        self.r: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: G = None
        self.p: F = None
        self.x: B = None
        self.txt = txt

j = A("j")
f = B("f")
a = C("a")
e = D("e")
b = E("b")
l = F("l")
i = G("i")
g = H("g")
c = C("c")

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

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: C = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.v: C = None
        self.p: H = None
        self.w: B = None
        self.y: B = None
        self.u: F = None
        self.z: H = None
        self.t: C = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: H = None
        self.z: H = None
        self.s: A = None
        self.t: F = None
        self.r: F = None
        self.o: G = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: G = None
        self.o: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.s: D = None
        self.z: C = None
        self.v: B = None
        self.q: C = None
        self.x: A = None
        self.r: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: G = None
        self.p: F = None
        self.x: B = None
        self.txt = txt

j = A("j")
f = B("f")
a = C("a")
e = D("e")
b = E("b")
l = F("l")
i = G("i")
g = H("g")
c = C("c")

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