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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: B = None
        self.z: C = None
        self.v: G = None
        self.q: C = None
        self.u: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: C = None
        self.s: B = None
        self.t: F = None
        self.r: B = None
        self.o: A = None
        self.txt = txt

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

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

h = A("h")
g = B("g")
i = C("i")
b = D("b")
l = E("l")
d = F("d")
e = G("e")
k = E("k")
m = B("m")
c = E("c")

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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: B = None
        self.z: C = None
        self.v: G = None
        self.q: C = None
        self.u: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: C = None
        self.s: B = None
        self.t: F = None
        self.r: B = None
        self.o: A = None
        self.txt = txt

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

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

h = A("h")
g = B("g")
i = C("i")
b = D("b")
l = E("l")
d = F("d")
e = G("e")
k = E("k")
m = B("m")
c = E("c")

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