class A:
    def __init__(self, txt: str):
        self.p: D = None
        self.v: D = None
        self.u: E = None
        self.t: E = None
        self.s: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.u: E = None
        self.z: A = None
        self.w: E = None
        self.x: G = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: E = None
        self.x: F = None
        self.o: C = None
        self.z: A = None
        self.r: C = None
        self.u: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.u: E = None
        self.z: A = None
        self.w: E = None
        self.x: G = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: E = None
        self.x: F = None
        self.o: C = None
        self.z: A = None
        self.r: C = None
        self.u: A = None
        self.txt = txt

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

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