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

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

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.t: A = None
        self.x: E = None
        self.v: A = None
        self.txt = txt

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.t: A = None
        self.x: E = None
        self.v: A = None
        self.txt = txt

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

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

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

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

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

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