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

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

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.z: F = None
        self.p: D = None
        self.v: E = None
        self.w: C = None
        self.txt = txt

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

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

j = A("j")
g = B("g")
h = C("h")
b = D("b")
m = E("m")
k = F("k")
f = A("f")
d = D("d")
e = D("e")

j.s = b
j.x = k
g.w = f
g.q = k
h.q = j
h.r = f
h.o = b
h.v = d
b.r = f
b.z = k
b.p = d
b.v = m
b.w = h
m.t = e
m.p = j
m.o = k
m.u = h
m.y = h
k.t = h
f.s = e
f.x = k
d.r = f
d.z = k
d.p = e
d.v = m
d.w = h
e.r = j
e.z = k
e.p = d
e.v = m
e.w = h
assert h.v.w.r.x.t.r.s.txt == "
class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.z: F = None
        self.p: D = None
        self.v: E = None
        self.w: C = None
        self.txt = txt

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

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

j = A("j")
g = B("g")
h = C("h")
b = D("b")
m = E("m")
k = F("k")
f = A("f")
d = D("d")
e = D("e")

j.s = b
j.x = k
g.w = f
g.q = k
h.q = j
h.r = f
h.o = b
h.v = d
b.r = f
b.z = k
b.p = d
b.v = m
b.w = h
m.t = e
m.p = j
m.o = k
m.u = h
m.y = h
k.t = h
f.s = e
f.x = k
d.r = f
d.z = k
d.p = e
d.v = m
d.w = h
e.r = j
e.z = k
e.p = d
e.v = m
e.w = h
assert h.v.w.r.x.t.r.s.txt == "e"