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

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

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: C = None
        self.w: B = None
        self.y: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.z: C = None
        self.txt = txt

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

i = A("i")
g = B("g")
m = C("m")
c = D("c")
h = E("h")
j = C("j")
b = B("b")
d = B("d")
l = C("l")

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

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

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: C = None
        self.w: B = None
        self.y: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.z: C = None
        self.txt = txt

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

i = A("i")
g = B("g")
m = C("m")
c = D("c")
h = E("h")
j = C("j")
b = B("b")
d = B("d")
l = C("l")

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