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

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

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.y: D = None
        self.q: F = None
        self.t: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: B = None
        self.v: C = None
        self.o: F = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.y: D = None
        self.q: F = None
        self.t: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: B = None
        self.v: C = None
        self.o: F = None
        self.txt = txt

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

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

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