class A:
    def __init__(self, txt: str):
        self.p: E = None
        self.s: B = None
        self.y: D = None
        self.q: G = None
        self.v: A = None
        self.x: E = None
        self.r: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: G = None
        self.x: C = None
        self.u: A = None
        self.s: C = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: G = None
        self.z: A = None
        self.u: C = None
        self.y: A = None
        self.r: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.s: C = None
        self.z: A = None
        self.u: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.v: F = None
        self.t: C = None
        self.z: E = None
        self.o: D = None
        self.w: C = None
        self.txt = txt

j = A("j")
e = B("e")
b = C("b")
d = D("d")
l = E("l")
a = F("a")
f = G("f")
k = A("k")
i = F("i")
m = C("m")

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

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

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: G = None
        self.x: C = None
        self.u: A = None
        self.s: C = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: G = None
        self.z: A = None
        self.u: C = None
        self.y: A = None
        self.r: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.s: C = None
        self.z: A = None
        self.u: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.v: F = None
        self.t: C = None
        self.z: E = None
        self.o: D = None
        self.w: C = None
        self.txt = txt

j = A("j")
e = B("e")
b = C("b")
d = D("d")
l = E("l")
a = F("a")
f = G("f")
k = A("k")
i = F("i")
m = C("m")

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