class A:
    def __init__(self, txt: str):
        self.q: B = None
        self.v: E = None
        self.y: D = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: F = None
        self.s: C = None
        self.p: C = None
        self.z: B = None
        self.u: A = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: F = None
        self.s: C = None
        self.p: C = None
        self.z: B = None
        self.u: A = None
        self.txt = txt

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

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

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