var s, n: integer;begin readln (s); n := 1; while s < 51 do begin s := s + 5; n := n * 2 end; writeln(n)end.
var n, s, d: integer;begin readln(d); n := 0; s := 0; while s <= 365 do begin s := s + d; n := n + 5 end; write(n)end.
var s, n: integer;begin readln (s); n := 1; while s < 94 do begin s := s + 8; n := n * 2 end; writeln(n)end.
var s, n: integer;begin readln (s); n := 1; while s <=45 do begin s := s + 4; n := n * 2 end; writeln(n)end.
var s, n: integer;begin readln (s); n := 1; while s <= 45 do begin s := s + 4; n := n * 2 end; writeln(n)end.
var s, n: integer;begin readln (s); n := 3; while s <= 51 do begin s := s + 7; n := n * 2 end; writeln(n)end.
var s, n: integer;begin readln (s); n := 1; while s > 43 do begin s := s - 8; n := n * 2 end; writeln(n)end.
var n, s: integer;begin readln(s); n := 10; while s > 0 do begin s := s - 15; n := n + 3; end; write(n)end.