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

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

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.u: F = None
        self.z: D = None
        self.w: B = None
        self.v: D = None
        self.y: F = None
        self.s: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.u: C = None
        self.w: E = None
        self.r: B = None
        self.t: A = None
        self.q: F = None
        self.p: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: B = None
        self.txt = txt

i = A("i")
e = B("e")
m = C("m")
f = D("f")
j = E("j")
g = F("g")
c = G("c")
h = F("h")
b = D("b")
n = C("n")

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

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

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.u: F = None
        self.z: D = None
        self.w: B = None
        self.v: D = None
        self.y: F = None
        self.s: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.u: C = None
        self.w: E = None
        self.r: B = None
        self.t: A = None
        self.q: F = None
        self.p: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: B = None
        self.txt = txt

i = A("i")
e = B("e")
m = C("m")
f = D("f")
j = E("j")
g = F("g")
c = G("c")
h = F("h")
b = D("b")
n = C("n")

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