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

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.o: D = None
        self.w: F = None
        self.x: B = None
        self.q: E = None
        self.y: B = None
        self.txt = txt

b = A("b")
k = B("k")
a = C("a")
i = D("i")
e = E("e")
g = F("g")
h = G("h")
l = A("l")
f = D("f")
m = F("m")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.o: D = None
        self.w: F = None
        self.x: B = None
        self.q: E = None
        self.y: B = None
        self.txt = txt

b = A("b")
k = B("k")
a = C("a")
i = D("i")
e = E("e")
g = F("g")
h = G("h")
l = A("l")
f = D("f")
m = F("m")

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