class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.w: B = None
        self.x: H = None
        self.v: D = None
        self.s: B = None
        self.r: D = None
        self.u: D = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: B = None
        self.w: G = None
        self.p: F = None
        self.s: H = None
        self.v: H = None
        self.q: B = None
        self.t: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: H = None
        self.v: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: E = None
        self.q: F = None
        self.o: B = None
        self.u: H = None
        self.p: E = None
        self.y: D = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: B = None
        self.w: G = None
        self.p: F = None
        self.s: H = None
        self.v: H = None
        self.q: B = None
        self.t: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: H = None
        self.v: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: E = None
        self.q: F = None
        self.o: B = None
        self.u: H = None
        self.p: E = None
        self.y: D = None
        self.txt = txt

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

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

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