class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: C = None
        self.u: E = None
        self.w: C = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.t: E = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.t: E = None
        self.txt = txt

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

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