import std.stdio, std.string, std.algorithm, std.conv, std.range, std.math;

void main() {
  real[] arr;

  foreach (string line; lines(stdin)) {
    arr ~= line.chomp.to!real;
  }

  writeln((arr.reduce!(max) - arr.reduce!(min)).to!string);
}