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

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

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.r: E = None
        self.o: C = None
        self.w: D = None
        self.z: B = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.r: E = None
        self.o: C = None
        self.w: D = None
        self.z: B = None
        self.txt = txt

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

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

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

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