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

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

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: I = None
        self.o: E = None
        self.u: F = None
        self.y: G = None
        self.s: G = None
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.p: F = None
        self.z: C = None
        self.r: A = None
        self.o: C = None
        self.x: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: I = None
        self.q: H = None
        self.s: D = None
        self.o: I = None
        self.p: C = None
        self.t: B = None
        self.z: D = None
        self.x: B = None
        self.w: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.r: H = None
        self.u: D = None
        self.o: E = None
        self.y: A = None
        self.w: H = None
        self.p: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: A = None
        self.q: C = None
        self.o: B = None
        self.u: A = None
        self.t: H = None
        self.x: D = None
        self.v: I = None
        self.y: B = None
        self.txt = txt

j = A("j")
n = B("n")
m = C("m")
d = D("d")
c = E("c")
f = F("f")
e = G("e")
a = H("a")
b = I("b")
l = I("l")

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

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

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: I = None
        self.o: E = None
        self.u: F = None
        self.y: G = None
        self.s: G = None
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.p: F = None
        self.z: C = None
        self.r: A = None
        self.o: C = None
        self.x: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: I = None
        self.q: H = None
        self.s: D = None
        self.o: I = None
        self.p: C = None
        self.t: B = None
        self.z: D = None
        self.x: B = None
        self.w: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.r: H = None
        self.u: D = None
        self.o: E = None
        self.y: A = None
        self.w: H = None
        self.p: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: A = None
        self.q: C = None
        self.o: B = None
        self.u: A = None
        self.t: H = None
        self.x: D = None
        self.v: I = None
        self.y: B = None
        self.txt = txt

j = A("j")
n = B("n")
m = C("m")
d = D("d")
c = E("c")
f = F("f")
e = G("e")
a = H("a")
b = I("b")
l = I("l")

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