class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.y: G = None
        self.w: B = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.u: D = None
        self.o: H = None
        self.s: F = None
        self.w: F = None
        self.z: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: C = None
        self.t: D = None
        self.o: E = None
        self.s: C = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.u: D = None
        self.o: H = None
        self.s: F = None
        self.w: F = None
        self.z: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: C = None
        self.t: D = None
        self.o: E = None
        self.s: C = None
        self.txt = txt

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

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