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

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.s: G = None
        self.u: E = None
        self.o: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: F = None
        self.r: F = None
        self.y: E = None
        self.t: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: G = None
        self.v: C = None
        self.u: E = None
        self.x: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.s: G = None
        self.u: E = None
        self.o: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: F = None
        self.r: F = None
        self.y: E = None
        self.t: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: G = None
        self.v: C = None
        self.u: E = None
        self.x: G = None
        self.txt = txt

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

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

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